]> git.baikalelectronics.ru Git - kernel.git/commit
kexec: return error number directly
authorMinfei Huang <mnghuan@gmail.com>
Tue, 2 Aug 2016 21:05:45 +0000 (14:05 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 2 Aug 2016 23:35:24 +0000 (19:35 -0400)
commitf47c8469e313a039b4f01ffde2583a427daf33dd
tree03c9284494c49c83efb88b3fc8dd63d42e206f0b
parent7dd08062624d86bf922b3d9e8461ba740a9ffd88
kexec: return error number directly

This is a cleanup patch to make kexec more clear to return error number
directly.  The variable result is useless, because there is no other
function's return value assignes to it.  So remove it.

Link: http://lkml.kernel.org/r/1464179273-57668-1-git-send-email-mnghuan@gmail.com
Signed-off-by: Minfei Huang <mnghuan@gmail.com>
Cc: Dave Young <dyoung@redhat.com>
Cc: Baoquan He <bhe@redhat.com>
Cc: Borislav Petkov <bp@suse.de>
Cc: Xunlei Pang <xlpang@redhat.com>
Cc: Atsushi Kumagai <ats-kumagai@wm.jp.nec.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>
kernel/kexec_core.c