]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Assemble: assemble_container_content(): Avoid superfluous NULL initialization
authorJes Sorensen <Jes.Sorensen@redhat.com>
Wed, 9 Mar 2016 20:21:26 +0000 (15:21 -0500)
committerJes Sorensen <Jes.Sorensen@redhat.com>
Tue, 22 Mar 2016 18:06:28 +0000 (14:06 -0400)
No need to init avail to NULL since it will only be accessed after
assignment.

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Assemble.c

index 8039f32d20dd548606bb271cdf7c89bfbf8476fd..ec63cf2463d82850c1d265f27eef8c4b82dbbd3c 100644 (file)
@@ -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);