Skip to contentSkip to conversation

mm: page-writeback: remove unused variable

PATCH New Arnd Bergmann 1 participant 1 message Jun 21, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mm: page-writeback: remove unused variable

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 <[email protected]>
---
 mm/page-writeback.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/page-writeback.c +1 -1
index 64b75bd996a4..0b60cc7ddac2 100644
@@ -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,
Signature · 1 line
2.9.0