summaryrefslogtreecommitdiffstats
path: root/net/tipc
diff options
context:
space:
mode:
authorCesar Eduardo Barros <cesarb@cesarb.net>2011-03-22 16:33:22 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2011-03-22 17:44:07 -0700
commit7de7fb6b3422e6d1dac00666a992834085e745dc (patch)
tree4dd93f9871c1ff05212652a1e4709414a4881f1d /net/tipc
parent83ef99befc324803a54cf2a5fab5a322df3a99d6 (diff)
downloadlinux-stable-7de7fb6b3422e6d1dac00666a992834085e745dc.tar.gz
linux-stable-7de7fb6b3422e6d1dac00666a992834085e745dc.tar.bz2
linux-stable-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 'net/tipc')
0 files changed, 0 insertions, 0 deletions