Searched hist:"7 de7fb6b3422e6d1dac00666a992834085e745dc" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/mm/ |
H A D | swapfile.c | diff 7de7fb6b3422e6d1dac00666a992834085e745dc Tue Mar 22 18:33:22 CDT 2011 Cesar Eduardo Barros <cesarb@cesarb.net> 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>
|