* [PATCH] mm: page-writeback: remove unused variable
@ 2017-06-21 22:02 Arnd Bergmann
0 siblings, 0 replies; only message in thread
From: Arnd Bergmann @ 2017-06-21 22:02 UTC (permalink / raw)
To: Jeff Layton
Cc: Arnd Bergmann, Andrew Morton, Johannes Weiner, Mel Gorman,
Jan Kara, linux-mm, linux-kernel
A commit in today's file-locks/linux-next branch caused a warning
by introducing an unused variable:
mm/page-writeback.c: In function 'write_one_page':
mm/page-writeback.c:2380:15: warning: unused variable 'ret2' [-Wunused-variable]
Fixes: 4118ba44fa2c ("mm: clean up error handling in write_one_page")
Cc: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
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.9.0
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-06-21 22:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-21 22:02 [PATCH] mm: page-writeback: remove unused variable Arnd Bergmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox