Skip to content

Commit c4b7d1b

Browse files
YueHaibingAl Viro
authored andcommitted
sysv: return 'err' instead of 0 in __sysv_write_inode
Fixes gcc '-Wunused-but-set-variable' warning: fs/sysv/inode.c: In function '__sysv_write_inode': fs/sysv/inode.c:239:6: warning: variable 'err' set but not used [-Wunused-but-set-variable] __sysv_write_inode should return 'err' instead of 0 Fixes: 05459ca ("repair sysv_write_inode(), switch sysv to simple_fsync()") Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent 6510223 commit c4b7d1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/sysv/inode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ static int __sysv_write_inode(struct inode *inode, int wait)
275275
}
276276
}
277277
brelse(bh);
278-
return 0;
278+
return err;
279279
}
280280

281281
int sysv_write_inode(struct inode *inode, struct writeback_control *wbc)

0 commit comments

Comments
 (0)