summaryrefslogtreecommitdiff
path: root/security/selinux/ss/services.c
diff options
context:
space:
mode:
authorMichal Orzel <michalorzel.eng@gmail.com>2022-03-31 19:33:57 +0200
committerPaul Moore <paul@paul-moore.com>2022-04-04 15:38:53 -0400
commit0a9876f36b08706d9954d8ccb42d0cd85f210333 (patch)
tree6637caf41df61bcef322027eff4857006ad6fe54 /security/selinux/ss/services.c
parent3123109284176b1532874591f7c81f3837bbdc17 (diff)
downloadlinux-next-0a9876f36b08706d9954d8ccb42d0cd85f210333.tar.gz
selinux: Remove redundant assignments
Get rid of redundant assignments which end up in values not being read either because they are overwritten or the function ends. Reported by clang-tidy [deadcode.DeadStores] Signed-off-by: Michal Orzel <michalorzel.eng@gmail.com> Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'security/selinux/ss/services.c')
-rw-r--r--security/selinux/ss/services.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/security/selinux/ss/services.c b/security/selinux/ss/services.c
index 6901dc07680d..802a80648c6c 100644
--- a/security/selinux/ss/services.c
+++ b/security/selinux/ss/services.c
@@ -2980,7 +2980,6 @@ int security_fs_use(struct selinux_state *state, struct super_block *sb)
}
retry:
- rc = 0;
rcu_read_lock();
policy = rcu_dereference(state->policy);
policydb = &policy->policydb;