Skip to content
Commit 04e9949b authored by Minfei Huang's avatar Minfei Huang Committed by Linus Torvalds
Browse files

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: default avatarMinfei Huang <mnfhuang@gmail.com>
Acked-by: default avatarDave Young <dyoung@redhat.com>
Acked-by: default avatarVivek Goyal <vgoyal@redhat.com>
Cc: Simon Horman <horms@verge.net.au>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 2965faa5
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment