File 0032-Assemble-assemble_container_content-Avoid-superfluou.patch of Package mdadm.7129
From 0a8e239c187c234fefc14a1a05561bd3fd1b2e65 Mon Sep 17 00:00:00 2001
From: Jes Sorensen <Jes.Sorensen@redhat.com>
Date: Wed, 9 Mar 2016 15:21:26 -0500
Subject: [PATCH 257/359] Assemble: assemble_container_content(): Avoid
superfluous NULL initialization
References: bsc#1081910
No need to init avail to NULL since it will only be accessed after
assignment.
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Coly Li <colyli@suse.de>
---
Assemble.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Assemble.c b/Assemble.c
index 8039f32..ec63cf2 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);
--
2.16.1