xfs: clean up the ATTR_REPLACE checks
authorChristoph Hellwig <hch@lst.de>
Thu, 27 Feb 2020 01:30:42 +0000 (17:30 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 3 Mar 2020 04:55:55 +0000 (20:55 -0800)
commitf3e93d95feef7655a980be83a3b1830e8e1711a1
treec879b4871094824feff0fbdc58bd3c16bdefd091
parent5a3930e27ef95893f039b9ec127a48139fcc8ca5
xfs: clean up the ATTR_REPLACE checks

Remove superflous braces, elses after return statements and use a goto
label to merge common error handling.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Chandan Rajendra <chandanrlinux@gmail.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/libxfs/xfs_attr.c