Skip to contentSkip to conversation

kexec: remove some re zero-assignment

PATCH Applied HuKeping 2 participants 2 messages Nov 29, 2014 – Dec 2, 2014

Subsystems (2)
lore
Share & tools
lore

HuKeping

author
#0 lore raw

PATCH 1/1 kexec: remove some re zero-assignment

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

---
 kexec/kexec.c | 4 ----
 1 file changed, 4 deletions(-)
kexec/kexec.c +0 -4
index a5e78c6..b088916 100644
@@ -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;
Signature · 7 lines
1.8.5.5


_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec
Applied
#1 lore raw
Quoted 4 lines · HuKeping

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

Thanks, applied.

Quoted 28 lines
---
 kexec/kexec.c | 4 ----
 1 file changed, 4 deletions(-)
kexec/kexec.c +0 -4
index a5e78c6..b088916 100644
@@ -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;
Signature · 7 lines
1.8.5.5


_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec