kexec: remove some re zero-assignment
Subsystems (2)
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.
Signed-off-by Hu Keping <[email protected]>
--- kexec/kexec.c | 4 ---- 1 file changed, 4 deletions(-)
kexec/kexec.c +0 -4
@@ -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
Simon Horman
AppliedQuoted 4 lines · HuKeping
since we have already cleared
kexec_infowith memset, there is no need to do that again to the struct members.Signed-off-by Hu Keping <[email protected]>
Thanks, applied.
Quoted 28 lines
--- kexec/kexec.c | 4 ---- 1 file changed, 4 deletions(-)kexec/kexec.c +0
-4@@ -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