summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2014-07-23 09:13:07 +1000
committerStephen Rothwell <sfr@canb.auug.org.au>2014-07-28 20:51:14 +1000
commit514179cf569b9bd4a4d808d7299a8baae8baa4a8 (patch)
treeaa31a650514c2908154ec2e950f7b5cd4b07da30
parent1d753cc22351c654b908d450a8d4bfc7f25958ff (diff)
kexec-implementation-of-new-syscall-kexec_file_load-checkpatch-fixes
WARNING: else is not generally useful after a break or return #673: FILE: kernel/kexec.c:2024: + return locate_mem_hole_top_down(start, end, kbuf); + else total: 0 errors, 1 warnings, 677 lines checked ./patches/kexec-implementation-of-new-syscall-kexec_file_load.patch has style problems, please review. If any of these errors are false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS. Please run checkpatch prior to sending patches Cc: Vivek Goyal <vgoyal@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
-rw-r--r--kernel/kexec.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/kexec.c b/kernel/kexec.c
index e5e0f6a63e09..32fd3d48bc8c 100644
--- a/kernel/kexec.c
+++ b/kernel/kexec.c
@@ -2021,8 +2021,7 @@ static int locate_mem_hole_callback(u64 start, u64 end, void *arg)
*/
if (kbuf->top_down)
return locate_mem_hole_top_down(start, end, kbuf);
- else
- return locate_mem_hole_bottom_up(start, end, kbuf);
+ return locate_mem_hole_bottom_up(start, end, kbuf);
}
/*