[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20170621101433.9847-1-colin.king@canonical.com>
Date: Wed, 21 Jun 2017 11:14:33 +0100
From: Colin King <colin.king@...onical.com>
To: Andrew Morton <akpm@...ux-foundation.org>,
Johannes Weiner <hannes@...xchg.org>,
Mel Gorman <mgorman@...hsingularity.net>,
Jan Kara <jack@...e.cz>, Michal Hocko <mhocko@...e.com>,
Jeff Layton <jlayton@...hat.com>,
Dave Chinner <dchinner@...hat.com>,
Matthew Wilcox <mawilcox@...rosoft.com>,
Sebastian Andrzej Siewior <bigeasy@...utronix.de>,
linux-mm@...ck.org
Cc: kernel-janitors@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH][mm-next] mm: clean up build warning with unused variable ret2
From: Colin Ian King <colin.king@...onical.com>
Variable ret2 is unused and should be removed. Cleans up
build warning:
warning: unused variable 'ret2' [-Wunused-variable]
Fixes: 4118ba44fa2cd040e ("mm: clean up error handling in write_one_page")
Signed-off-by: Colin Ian King <colin.king@...onical.com>
---
mm/page-writeback.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/page-writeback.c b/mm/page-writeback.c
index 64b75bd996a4..0b60cc7ddac2 100644
--- a/mm/page-writeback.c
+++ b/mm/page-writeback.c
@@ -2377,7 +2377,7 @@ int do_writepages(struct address_space *mapping, struct writeback_control *wbc)
int write_one_page(struct page *page)
{
struct address_space *mapping = page->mapping;
- int ret = 0, ret2;
+ int ret = 0;
struct writeback_control wbc = {
.sync_mode = WB_SYNC_ALL,
.nr_to_write = 1,
--
2.11.0
Powered by blists - more mailing lists