summaryrefslogtreecommitdiffstats
path: root/mm/mmap.c
diff options
context:
space:
mode:
authorCesar Eduardo Barros <cesarb@cesarb.net>2011-03-23 00:33:22 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2011-03-23 01:44:07 +0100
commit7de7fb6b3422e6d1dac00666a992834085e745dc (patch)
tree4dd93f9871c1ff05212652a1e4709414a4881f1d /mm/mmap.c
parentsys_swapon: remove did_down variable (diff)
downloadlinux-7de7fb6b3422e6d1dac00666a992834085e745dc.tar.xz
linux-7de7fb6b3422e6d1dac00666a992834085e745dc.zip
sys_swapon: move setting of error nearer use
Move the setting of the error variable nearer the goto in a few places. Avoids calling PTR_ERR() if not IS_ERR() in two places, and makes the error condition more explicit in two other places. Signed-off-by: Cesar Eduardo Barros <cesarb@cesarb.net> Tested-by: Eric B Munson <emunson@mgebm.net> Acked-by: Eric B Munson <emunson@mgebm.net> Reviewed-by: Jesper Juhl <jj@chaosbits.net> Reviewed-by: Pekka Enberg <penberg@kernel.org> Reviewed-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Cc: Hugh Dickins <hughd@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/mmap.c')
0 files changed, 0 insertions, 0 deletions