[PATCH] kexec: remove some re zero-assignment
Simon Horman
horms at verge.net.au
Mon Dec 1 17:50:57 PST 2014
On Sat, Nov 29, 2014 at 08:45:32AM +0800, HuKeping wrote:
> 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>
Thanks, applied.
> ---
> 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
>
>
> _______________________________________________
> kexec mailing list
> kexec at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/kexec
>
More information about the kexec
mailing list