Commit f9eb2fdd authored by Ola Næss Kaldestad's avatar Ola Næss Kaldestad Committed by Linus Torvalds

kernel/sysctl.c: code cleanups

Remove unnecessary else block, remove redundant return and call to kfree
in if block.

Link: Ola Næss Kaldestad's avatarOla N. Kaldestad <>
Acked-by: default avatarKees Cook <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 2743232c
......@@ -3127,14 +3127,12 @@ int proc_do_large_bitmap(struct ctl_table *table, int write,
bitmap_copy(bitmap, tmp_bitmap, bitmap_len);
*lenp -= left;
*ppos += *lenp;
return 0;
} else {
return err;
return err;
Markdown is supported
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