[PATCH] kexec: remove some re zero-assignment

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [LM Sensors]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux