diff options
| author | Cesar Eduardo Barros <[email protected]> | 2011-03-22 16:33:22 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2011-03-22 17:44:07 -0700 |
| commit | 7de7fb6b3422e6d1dac00666a992834085e745dc (patch) | |
| tree | 4dd93f9871c1ff05212652a1e4709414a4881f1d /tools/perf/scripts/python | |
| parent | 83ef99befc324803a54cf2a5fab5a322df3a99d6 (diff) | |
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 <[email protected]>
Tested-by: Eric B Munson <[email protected]>
Acked-by: Eric B Munson <[email protected]>
Reviewed-by: Jesper Juhl <[email protected]>
Reviewed-by: Pekka Enberg <[email protected]>
Reviewed-by: KAMEZAWA Hiroyuki <[email protected]>
Cc: Hugh Dickins <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions