[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20200508120640.1852-2-thunder.leizhen@huawei.com>
Date: Fri, 8 May 2020 20:06:40 +0800
From: Zhen Lei <thunder.leizhen@...wei.com>
To: David Hildenbrand <david@...hat.com>,
Andrew Morton <akpm@...ux-foundation.org>,
linux-mm <linux-mm@...ck.org>,
linux-kernel <linux-kernel@...r.kernel.org>
CC: Zhen Lei <thunder.leizhen@...wei.com>
Subject: [PATCH v2 1/1] mm/page_io.c: remove an unnecessary goto in generic_swapfile_activate()
This "goto" doesn't reduce any code, but bother the readers.
Signed-off-by: Zhen Lei <thunder.leizhen@...wei.com>
Reviewed-by: David Hildenbrand <david@...hat.com>
---
mm/page_io.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
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;
}
/*
--
2.26.0.106.g9fadedd
Powered by blists - more mailing lists