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
|
@ -672,11 +672,6 @@ xfs_inobt_cur(
|
|||
return error;
|
||||
|
||||
cur = xfs_inobt_init_cursor(mp, tp, *agi_bpp, agno, which);
|
||||
if (!cur) {
|
||||
xfs_trans_brelse(tp, *agi_bpp);
|
||||
*agi_bpp = NULL;
|
||||
return -ENOMEM;
|
||||
}
|
||||
*curpp = cur;
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue