]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit - libxfs/xfs_refcount.c
xfs: remove unneeded return value check for *init_cursor()
authorJoseph Qi <joseph.qi@linux.alibaba.com>
Thu, 7 Jan 2021 20:59:17 +0000 (15:59 -0500)
committerEric Sandeen <sandeen@sandeen.net>
Thu, 7 Jan 2021 20:59:17 +0000 (15:59 -0500)
commitdb9762f8af7e7e8c40a02ffabce121ac41ac9c97
tree06ea9583dc9c2d4638016690e4a48995c92d5f57
parent5e26c7ab6933d0b5e9246139625d59d18a12a7d7
xfs: remove unneeded return value check for *init_cursor()

Source kernel commit: 2e984badbcc0f1cf284441c566ca4309fe59ac05

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>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_bmap_btree.c
libxfs/xfs_ialloc_btree.c
libxfs/xfs_refcount.c
libxfs/xfs_rmap.c