mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-11 05:17:10 +09:00
xfs: remove unused variable 'done'
commitb3531f5fc1upstream. fs/xfs/xfs_inode.c: In function 'xfs_itruncate_extents_flags': fs/xfs/xfs_inode.c:1523:8: warning: unused variable 'done' [-Wunused-variable] commit4bbb04abb4("xfs: truncate should remove all blocks, not just to the end of the page cache") left behind this, so remove it. Fixes:4bbb04abb4("xfs: truncate should remove all blocks, not just to the end of the page cache") Reported-by: Hulk Robot <hulkci@huawei.com> Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: YueHaibing <yuehaibing@huawei.com> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Acked-by: Darrick J. Wong <djwong@kernel.org> Signed-off-by: Chandan Babu R <chandan.babu@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
538657def7
commit
ae19c3c76d
@@ -1515,7 +1515,6 @@ xfs_itruncate_extents_flags(
|
||||
xfs_fileoff_t first_unmap_block;
|
||||
xfs_filblks_t unmap_len;
|
||||
int error = 0;
|
||||
int done = 0;
|
||||
|
||||
ASSERT(xfs_isilocked(ip, XFS_ILOCK_EXCL));
|
||||
ASSERT(!atomic_read(&VFS_I(ip)->i_count) ||
|
||||
|
||||
Reference in New Issue
Block a user