]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd125f78122f86066a3958f51f663669737143364
treef95741231c8900022a186532881b3662e1b08a34
parent381de2493b88603559813ee1eb17c68250f1b941
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