summaryrefslogtreecommitdiffstats
path: root/security/selinux/hooks.c
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2022-02-17 15:21:29 +0100
committerPaul Moore <paul@paul-moore.com>2022-02-18 10:42:12 -0500
commit5ea33af9d430cd1dbfada1b839e0d317ed77bfac (patch)
tree63fb0d597bc11506bfaa5c00a1593ba5ca04bad2 /security/selinux/hooks.c
parent3eb8eaf2ca3e98d4f6e52bed6148ee8fe3069a3d (diff)
downloadlinux-5ea33af9d430cd1dbfada1b839e0d317ed77bfac.tar.bz2
selinux: drop return statement at end of void functions
Those return statements at the end of a void function are redundant. Reported by clang-tidy [readability-redundant-control-flow] Signed-off-by: Christian Göttsche <cgzones@googlemail.com> Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'security/selinux/hooks.c')
-rw-r--r--security/selinux/hooks.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c
index dafabb4dcc64..1e69f88eb326 100644
--- a/security/selinux/hooks.c
+++ b/security/selinux/hooks.c
@@ -3284,8 +3284,6 @@ static void selinux_inode_post_setxattr(struct dentry *dentry, const char *name,
isec->sid = newsid;
isec->initialized = LABEL_INITIALIZED;
spin_unlock(&isec->lock);
-
- return;
}
static int selinux_inode_getxattr(struct dentry *dentry, const char *name)