From c3ca5f60282b263808dff6b0b77538d2207c3568 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Thu, 10 Dec 2009 12:03:39 -0700 Subject: [PATCH] imsm: no need to report the component device name from container_content sysfs_add_disk() regenerates the name from major:minor, so we can drop a strcpy that the static analysis checker does not like. Reported-by: Artur Wojcik Signed-off-by: Dan Williams --- super-intel.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/super-intel.c b/super-intel.c index 5cc78f56..cf6288f0 100644 --- a/super-intel.c +++ b/super-intel.c @@ -3878,8 +3878,6 @@ static struct mdinfo *container_content_imsm(struct supertype *st) info_d->events = __le32_to_cpu(mpb->generation_num); info_d->data_offset = __le32_to_cpu(map->pba_of_lba0); info_d->component_size = __le32_to_cpu(map->blocks_per_member); - if (d->devname) - strcpy(info_d->name, d->devname); } rest = this; } -- 2.47.2