diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2019-11-06 08:47:09 -0800 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2019-11-11 12:42:52 -0800 |
commit | 27d9ee577dccec94fb0fc1a14728de64db342f86 (patch) | |
tree | 44111aca40050ec36ddc897f00f78dcd68181f5a /drivers/gnss | |
parent | 23220fe260c4b307da1c1fa82a944c50bf0742e4 (diff) |
xfs: actually check xfs_btree_check_block return in xfs_btree_islastblock
Coverity points out that xfs_btree_islastblock doesn't check the return
value of xfs_btree_check_block. Since the question "Does the cursor
point to the last block in this level?" only makes sense if the caller
previously performed a lookup or seek operation, the block should
already have been checked.
Therefore, check the return value in an ASSERT and turn the whole thing
into a static inline predicate.
Coverity-id: 114069
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/gnss')
0 files changed, 0 insertions, 0 deletions