From 0a8e239c187c234fefc14a1a05561bd3fd1b2e65 Mon Sep 17 00:00:00 2001 From: Jes Sorensen Date: Wed, 9 Mar 2016 15:21:26 -0500 Subject: [PATCH] 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 --- Assemble.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5