]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
imsm: no need to report the component device name from container_content
authorDan Williams <dan.j.williams@intel.com>
Thu, 10 Dec 2009 19:03:39 +0000 (12:03 -0700)
committerDan Williams <dan.j.williams@intel.com>
Thu, 10 Dec 2009 19:03:39 +0000 (12:03 -0700)
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 <artur.wojcik@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
super-intel.c

index 5cc78f5627bea9346dac65338492d2b0e14f422f..cf6288f03709c5ccffe6af373fc7f75b99e49fa5 100644 (file)
@@ -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;
        }