diff options
author | YueHaibing <yuehaibing@huawei.com> | 2018-11-10 05:13:24 +0100 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2018-11-10 14:02:40 +0100 |
commit | c4b7d1ba7d263b74bb72e9325262a67139605cde (patch) | |
tree | 21321f3608d2fc613fb27c99c2ff7fbab5e8b079 /fs | |
parent | Linux 4.20-rc1 (diff) | |
download | linux-c4b7d1ba7d263b74bb72e9325262a67139605cde.tar.xz linux-c4b7d1ba7d263b74bb72e9325262a67139605cde.zip |
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: 05459ca81ac3 ("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>
Diffstat (limited to '')
-rw-r--r-- | fs/sysv/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/sysv/inode.c b/fs/sysv/inode.c index 499a20a5a010..273736f41be3 100644 --- a/fs/sysv/inode.c +++ b/fs/sysv/inode.c @@ -275,7 +275,7 @@ static int __sysv_write_inode(struct inode *inode, int wait) } } brelse(bh); - return 0; + return err; } int sysv_write_inode(struct inode *inode, struct writeback_control *wbc) |