Skip to content

Commit eaefbf9

Browse files
AstralBobswhiteho
authored andcommitted
GFS2: Eliminate useless err variable
This patch removes an unneeded "err" variable that is always returned as zero. Signed-off-by: Bob Peterson <[email protected]> Signed-off-by: Steven Whitehouse <[email protected]>
1 parent 7e619bc commit eaefbf9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

fs/gfs2/meta_io.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434

3535
static int gfs2_aspace_writepage(struct page *page, struct writeback_control *wbc)
3636
{
37-
int err;
3837
struct buffer_head *bh, *head;
3938
int nr_underway = 0;
4039
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
8685
} while (bh != head);
8786
unlock_page(page);
8887

89-
err = 0;
9088
if (nr_underway == 0)
9189
end_page_writeback(page);
9290

93-
return err;
91+
return 0;
9492
}
9593

9694
const struct address_space_operations gfs2_meta_aops = {

0 commit comments

Comments
 (0)