Message ID | 20200508120640.1852-2-thunder.leizhen@huawei.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | mm/page_io.c: remove an unnecessary goto in generic_swapfile_activate() | expand |
diff --git a/mm/page_io.c b/mm/page_io.c index 76965be1d40e..19d429abb2cc 100644 --- a/mm/page_io.c +++ b/mm/page_io.c @@ -237,8 +237,7 @@ int generic_swapfile_activate(struct swap_info_struct *sis, return ret; bad_bmap: pr_err("swapon: swapfile has holes\n"); - ret = -EINVAL; - goto out; + return -EINVAL; } /*