diff options
author | Wei Yang <[email protected]> | 2020-06-01 21:49:07 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2020-06-02 10:59:09 -0700 |
commit | 7b9e2de130954af174e6f7aff278cf1ec5f39675 (patch) | |
tree | 2ebb38107c36c0c77738259f6a46fd6a3dd6e517 /tools/perf/scripts/python/sctop.py | |
parent | fdff1debb9650ea43617487500f48168ce432cb7 (diff) |
mm/swapfile.c: omit a duplicate code by compare tmp and max first
There are two duplicate code to handle the case when there is no available
swap entry. To avoid this, we can compare tmp and max first and let the
second guard do its job.
No functional change is expected.
Signed-off-by: Wei Yang <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Reviewed-by: "Huang, Ying" <[email protected]>
Cc: Tim Chen <[email protected]>
Cc: Hugh Dickins <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions