summaryrefslogtreecommitdiffstats
path: root/super-intel.c
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2009-12-10 12:03:39 -0700
committerDan Williams <dan.j.williams@intel.com>2009-12-10 12:03:39 -0700
commitc3ca5f60282b263808dff6b0b77538d2207c3568 (patch)
tree1fbe60559d5c4b66c6575f7adfa091dbed15978e /super-intel.c
parent7a6ecd55444b703050d3655eb04a22656e37488b (diff)
downloadmdadm-c3ca5f60282b263808dff6b0b77538d2207c3568.tar.gz
mdadm-c3ca5f60282b263808dff6b0b77538d2207c3568.tar.xz
mdadm-c3ca5f60282b263808dff6b0b77538d2207c3568.zip
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 <artur.wojcik@intel.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'super-intel.c')
-rw-r--r--super-intel.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/super-intel.c b/super-intel.c
index 5cc78f5..cf6288f 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;
}