xfs: clean up xfs_buf_item_get_format return value
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 8 Jan 2020 17:21:22 +0000 (09:21 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 16 Jan 2020 16:07:23 +0000 (08:07 -0800)
commitc64dd49b5112215730db8a2c3ac38c2e03b09e73
treef10b55356083d3431c66cda12b94cb931c77b936
parent0bb9d159bd018b271e783d3b2d3bc82fa0727321
xfs: clean up xfs_buf_item_get_format return value

The only thing that can cause a nonzero return from
xfs_buf_item_get_format is if the kmem_alloc fails, which it can't.
Get rid of all the unnecessary error handling.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/xfs_buf_item.c