xfs: simplify xfs_attr_remove_args
authorChristoph Hellwig <hch@lst.de>
Tue, 13 Apr 2021 18:15:10 +0000 (11:15 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 15 Apr 2021 16:35:50 +0000 (09:35 -0700)
commit605e74e29218bb22edd5ddcf90a4d37df00446cc
tree38b587fc33b7a5222c26518f47a29b8fa0320575
parent2ac131df03d4f06bb0d825335663cc5064421993
xfs: simplify xfs_attr_remove_args

Directly return from the subfunctions and avoid the error variable.  Also
remove the not really needed dp local variable.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
fs/xfs/libxfs/xfs_attr.c