xfs: trivial xfs_btree_del_cursor cleanups
The error argument to xfs_btree_del_cursor already understands the "nonzero for error" semantics, so remove pointless error testing in the callers and pass it directly. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Brian Foster <bfoster@redhat.com> Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
@@ -458,8 +458,7 @@ xfs_bulkstat(
|
||||
* pending error, then we are done.
|
||||
*/
|
||||
del_cursor:
|
||||
xfs_btree_del_cursor(cur, error ?
|
||||
XFS_BTREE_ERROR : XFS_BTREE_NOERROR);
|
||||
xfs_btree_del_cursor(cur, error);
|
||||
xfs_buf_relse(agbp);
|
||||
if (error)
|
||||
break;
|
||||
@@ -632,8 +631,7 @@ next_ag:
|
||||
|
||||
kmem_free(buffer);
|
||||
if (cur)
|
||||
xfs_btree_del_cursor(cur, (error ? XFS_BTREE_ERROR :
|
||||
XFS_BTREE_NOERROR));
|
||||
xfs_btree_del_cursor(cur, error);
|
||||
if (agbp)
|
||||
xfs_buf_relse(agbp);
|
||||
|
||||
|
Reference in New Issue
Block a user