summaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
authorMinfei Huang <mnfhuang@gmail.com>2015-09-10 00:38:58 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2015-09-10 22:29:01 +0200
commit04e9949b2d26ae1f0acd1181876a2a8ece92112d (patch)
tree67ca6ea9db1bfe72c8435b26dad08d88816b8a9e /samples
parentkexec: split kexec_load syscall from kexec core code (diff)
downloadlinux-04e9949b2d26ae1f0acd1181876a2a8ece92112d.tar.xz
linux-04e9949b2d26ae1f0acd1181876a2a8ece92112d.zip
kexec: remove unnecessary test in kimage_alloc_crash_control_pages()
Transforming PFN(Page Frame Number) to struct page is never failure, so we can simplify the code logic to do the image->control_page assignment directly in the loop, and remove the unnecessary conditional judgement. Signed-off-by: Minfei Huang <mnfhuang@gmail.com> Acked-by: Dave Young <dyoung@redhat.com> Acked-by: Vivek Goyal <vgoyal@redhat.com> Cc: Simon Horman <horms@verge.net.au> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions