From: Dan Williams Date: Thu, 10 Dec 2009 19:03:39 +0000 (-0700) Subject: imsm: no need to report the component device name from container_content X-Git-Tag: mdadm-3.1.2~63^2~11 X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fmdadm.git;a=commitdiff_plain;h=c3ca5f60282b263808dff6b0b77538d2207c3568 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 --- 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; }