]> git.baikalelectronics.ru Git - kernel.git/commit
kexec: remove never used member destination in kimage
authorBaoquan He <bhe@redhat.com>
Tue, 17 Feb 2015 21:45:44 +0000 (13:45 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 17 Feb 2015 22:34:51 +0000 (14:34 -0800)
commit31f307c4248bb8ff218afd85e638a7aff67d30e0
treec8e8ae31c8e46cca84aac8bde9b0919126cfafd5
parentd9b6674a83afdda934136e3480f3471b50e60fcb
kexec: remove never used member destination in kimage

struct kimage has a member destination which is used to store the real
destination address of each page when load segment from user space buffer
to kernel.  But we never retrieve the value stored in kimage->destination,
so this member variable in kimage and its assignment operation are
redundent code.

I guess for_each_kimage_entry just does the work that kimage->destination
is expected to do.

So in this patch just make a cleanup to remove it.

Signed-off-by: Baoquan He <bhe@redhat.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/kexec.h
kernel/kexec.c