]> git.baikalelectronics.ru Git - kernel.git/commit
kexec: remove unnecessary test in kimage_alloc_crash_control_pages()
authorMinfei Huang <mnfhuang@gmail.com>
Wed, 9 Sep 2015 22:38:58 +0000 (15:38 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 10 Sep 2015 20:29:01 +0000 (13:29 -0700)
commit2d2ae85e8256b519019cbf4518ddb0042dc129ea
tree67ca6ea9db1bfe72c8435b26dad08d88816b8a9e
parent684a52948b25dae2d4fd1172c0f963a9e0bf36c3
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>
kernel/kexec_core.c