diff options
author | Michal Orzel <michalorzel.eng@gmail.com> | 2022-03-31 19:33:58 +0200 |
---|---|---|
committer | Casey Schaufler <casey@schaufler-ca.com> | 2022-05-23 20:12:08 +0200 |
commit | eaff451d4b7c86e3db3c03611426f5ce1d3826fd (patch) | |
tree | a4ab702c757683cf1107e3595de903180af88b22 /security | |
parent | Linux 5.18 (diff) | |
download | linux-eaff451d4b7c86e3db3c03611426f5ce1d3826fd.tar.xz linux-eaff451d4b7c86e3db3c03611426f5ce1d3826fd.zip |
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>
Diffstat (limited to 'security')
-rw-r--r-- | security/smack/smackfs.c | 1 |
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) { |