summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Orzel <michalorzel.eng@gmail.com>2022-03-31 19:33:58 +0200
committerCasey Schaufler <casey@schaufler-ca.com>2022-05-23 11:12:08 -0700
commiteaff451d4b7c86e3db3c03611426f5ce1d3826fd (patch)
treea4ab702c757683cf1107e3595de903180af88b22
parent4b0986a3613c92f4ec1bdc7f60ec66fea135991f (diff)
downloadlinux-eaff451d4b7c86e3db3c03611426f5ce1d3826fd.tar.bz2
smack: 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: Casey Schaufler <casey@schaufler-ca.com>
-rw-r--r--security/smack/smackfs.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/security/smack/smackfs.c b/security/smack/smackfs.c
index 658eab05599e..9e61014073cc 100644
--- a/security/smack/smackfs.c
+++ b/security/smack/smackfs.c
@@ -1192,7 +1192,6 @@ static ssize_t smk_write_net4addr(struct file *file, const char __user *buf,
rc = -EINVAL;
goto free_out;
}
- m = BEBITS;
masks = 32;
}
if (masks > BEBITS) {