diff options
author | Michal Orzel <michalorzel.eng@gmail.com> | 2022-03-31 19:33:57 +0200 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2022-04-04 15:38:53 -0400 |
commit | 0a9876f36b08706d9954d8ccb42d0cd85f210333 (patch) | |
tree | 6637caf41df61bcef322027eff4857006ad6fe54 /security/selinux/ss/services.c | |
parent | 3123109284176b1532874591f7c81f3837bbdc17 (diff) | |
download | linux-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.c | 1 |
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; |