[PATCH] kexec: remove some re zero-assignment

HuKeping hukeping at huawei.com
Fri Nov 28 16:45:32 PST 2014


since we have already cleared kexec_info with memset,
there is no need to do that again to the struct members.

Signed-off-by: Hu Keping <hukeping at huawei.com>
---
 kexec/kexec.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/kexec/kexec.c b/kexec/kexec.c
index a5e78c6..b088916 100644
--- a/kexec/kexec.c
+++ b/kexec/kexec.c
@@ -662,10 +662,6 @@ static int my_load(const char *type, int fileind, int argc, char **argv,
 	int guess_only = 0;
 
 	memset(&info, 0, sizeof(info));
-	info.segment = NULL;
-	info.nr_segments = 0;
-	info.entry = NULL;
-	info.backup_start = 0;
 	info.kexec_flags = kexec_flags;
 
 	result = 0;
-- 
1.8.5.5




More information about the kexec mailing list