Re: [PATCH -next] sysv: return 'err' instead of 0 in __sysv_write_inode
From: Al Viro
Date: Sat Nov 10 2018 - 08:03:47 EST
On Sat, Nov 10, 2018 at 04:13:24AM +0000, YueHaibing wrote:
> 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@xxxxxxxxxx>
Applied.