mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
xfs: remove unneeded return value check for *init_cursor()
Since *init_cursor() can always return a valid cursor, the NULL check in caller is unneeded. So clean them up. This also keeps the behavior consistent with other callers. Signed-off-by: Joseph Qi <joseph.qi@linux.alibaba.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
This commit is contained in:
parent
7bc1fea9d3
commit
2e984badbc
7 changed files with 0 additions and 46 deletions
|
@ -1179,10 +1179,6 @@ xfs_refcount_finish_one(
|
|||
return error;
|
||||
|
||||
rcur = xfs_refcountbt_init_cursor(mp, tp, agbp, agno);
|
||||
if (!rcur) {
|
||||
error = -ENOMEM;
|
||||
goto out_cur;
|
||||
}
|
||||
rcur->bc_ag.refc.nr_ops = nr_ops;
|
||||
rcur->bc_ag.refc.shape_changes = shape_changes;
|
||||
}
|
||||
|
@ -1217,11 +1213,6 @@ xfs_refcount_finish_one(
|
|||
trace_xfs_refcount_finish_one_leftover(mp, agno, type,
|
||||
bno, blockcount, new_agbno, *new_len);
|
||||
return error;
|
||||
|
||||
out_cur:
|
||||
xfs_trans_brelse(tp, agbp);
|
||||
|
||||
return error;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue