xfs: clean up state variable usage in xfs_attr_node_remove_attr
authorDarrick J. Wong <djwong@kernel.org>
Sun, 22 May 2022 05:59:48 +0000 (15:59 +1000)
committerDave Chinner <david@fromorbit.com>
Sun, 22 May 2022 05:59:48 +0000 (15:59 +1000)
commit3768f6985700106e90eca87d814dc08e609a9969
treef95741231c8900022a186532881b3662e1b08a34
parent4136e38af728eddcab2e51aecde28e94d0782b9b
xfs: clean up state variable usage in xfs_attr_node_remove_attr

The state variable is now a local variable pointing to a heap
allocation, so we don't need to zero-initialize it, nor do we need the
conditional to decide if we should free it.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Allison Henderson <allison.henderson@oracle.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/libxfs/xfs_attr.c