From: Jes Sorensen Date: Wed, 9 Mar 2016 20:21:26 +0000 (-0500) Subject: Assemble: assemble_container_content(): Avoid superfluous NULL initialization X-Git-Tag: mdadm-4.0~102 X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fmdadm.git;a=commitdiff_plain;h=0a8e239c187c234fefc14a1a05561bd3fd1b2e65 Assemble: assemble_container_content(): Avoid superfluous NULL initialization No need to init avail to NULL since it will only be accessed after assignment. Signed-off-by: Jes Sorensen --- diff --git a/Assemble.c b/Assemble.c index 8039f32d..ec63cf24 100644 --- a/Assemble.c +++ b/Assemble.c @@ -1883,7 +1883,7 @@ int assemble_container_content(struct supertype *st, int mdfd, struct map_ent *map = NULL; int old_raid_disks; int start_reshape; - char *avail = NULL; + char *avail; int err; sysfs_init(content, mdfd, NULL);