]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf99a09bbacfb9129ecc570d4df9383b5b8ccfc65
treef10b55356083d3431c66cda12b94cb931c77b936
parent92ee175e92e8eb2d6541928b6cb70df201b494fa
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