[PATCH 09/11] GFS2: Eliminate useless err variable

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Steven Whitehouse
Date: Monday, May 17, 2010 - 5:40 am

From: Bob Peterson <rpeterso@redhat.com>

This patch removes an unneeded "err" variable that is always
returned as zero.

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
---
 fs/gfs2/meta_io.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/fs/gfs2/meta_io.c b/fs/gfs2/meta_io.c
index abafda1..18176d0 100644
--- a/fs/gfs2/meta_io.c
+++ b/fs/gfs2/meta_io.c
@@ -34,7 +34,6 @@
 
 static int gfs2_aspace_writepage(struct page *page, struct writeback_control *wbc)
 {
-	int err;
 	struct buffer_head *bh, *head;
 	int nr_underway = 0;
 	int write_op = (1 << BIO_RW_META) | ((wbc->sync_mode == WB_SYNC_ALL ?
@@ -86,11 +85,10 @@ static int gfs2_aspace_writepage(struct page *page, struct writeback_control *wb
 	} while (bh != head);
 	unlock_page(page);
 
-	err = 0;
 	if (nr_underway == 0)
 		end_page_writeback(page);
 
-	return err;
+	return 0;
 }
 
 const struct address_space_operations gfs2_meta_aops = {
-- 
1.6.2.5

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
GFS2: Pre-pull patch posting, Steven Whitehouse, (Mon May 17, 5:40 am)
[PATCH 01/11] GFS2: Remove space from slab cache name, Steven Whitehouse, (Mon May 17, 5:40 am)
[PATCH 02/11] GFS2: docs update, Steven Whitehouse, (Mon May 17, 5:40 am)
[PATCH 03/11] GFS2: Clean up stuffed file copying, Steven Whitehouse, (Mon May 17, 5:40 am)
[PATCH 04/11] GFS2: glock livelock, Steven Whitehouse, (Mon May 17, 5:40 am)
[PATCH 05/11] GFS2: Various gfs2_logd improvements, Steven Whitehouse, (Mon May 17, 5:40 am)
[PATCH 06/11] GFS2: fix quota state reporting, Steven Whitehouse, (Mon May 17, 5:40 am)
[PATCH 07/11] GFS2: Add some useful messages, Steven Whitehouse, (Mon May 17, 5:40 am)
[PATCH 08/11] GFS2: Fix writing to non-page aligned gfs2_q ..., Steven Whitehouse, (Mon May 17, 5:40 am)
[PATCH 09/11] GFS2: Eliminate useless err variable, Steven Whitehouse, (Mon May 17, 5:40 am)
[PATCH 10/11] GFS2: stuck in inode wait, no glocks stuck, Steven Whitehouse, (Mon May 17, 5:40 am)
[PATCH 11/11] GFS2: Fix typo, Steven Whitehouse, (Mon May 17, 5:40 am)