mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-10 20:48:12 +00:00
xattr: switch xattr_permission() to switch statement
Simplify the codeflow by using a switch statement that switches on S_IFMT. Link: https://patch.msgid.link/20260216-work-xattr-socket-v1-8-c2efa4f74cb7@kernel.org Acked-by: Darrick J. Wong <djwong@kernel.org> Reviewed-by: Jan Kara <jack@suse.cz> Signed-off-by: Christian Brauner <brauner@kernel.org>
This commit is contained in:
parent
3ec90ae54d
commit
8adddcb01e
1 changed files with 13 additions and 5 deletions
18
fs/xattr.c
18
fs/xattr.c
Loading…
Add table
Add a link
Reference in a new issue