diff options
author | 2020-12-14 19:06:04 -0800 | |
---|---|---|
committer | 2020-12-15 12:13:39 -0800 | |
commit | 9d9a03340309cb8065503cfa3c5c5fc8b7670230 (patch) | |
tree | 87f4fc34b9e59b796372b2559b64e60d79d2c7b3 /mm/vmscan.c | |
parent | mm/swap_state: skip meaningless swap cache readahead when ra_info.win == 0 (diff) | |
download | wireguard-linux-9d9a03340309cb8065503cfa3c5c5fc8b7670230.tar.xz wireguard-linux-9d9a03340309cb8065503cfa3c5c5fc8b7670230.zip |
mm/swapfile.c: remove unnecessary out label in __swap_duplicate()
When the code went to the out label, it must have p == NULL. So what out
label really does is redundant if check and return err. We should Remove
this unnecessary out label because it does not handle resource free and so
on.
Link: https://lkml.kernel.org/r/20201009130337.29698-1-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/vmscan.c')
0 files changed, 0 insertions, 0 deletions