]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: clean up the ATTR_REPLACE checks
authorChristoph Hellwig <hch@lst.de>
Fri, 1 May 2020 21:01:33 +0000 (17:01 -0400)
committerEric Sandeen <sandeen@redhat.com>
Fri, 1 May 2020 21:01:33 +0000 (17:01 -0400)
commit74ed8e80aba0caacee96c613a74b9110b8e4dfa6
tree2d0ab54b11de1c230cf97d71592e4e3b1f0e76a0
parent63171ca8bfd13237588994065c9e32a6f70fdee9
xfs: clean up the ATTR_REPLACE checks

Source kernel commit: f3e93d95feef7655a980be83a3b1830e8e1711a1

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