Skip to content

Commit

Permalink
smack: Remove redundant assignments
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
orzelmichal authored and cschaufler committed May 23, 2022
1 parent 4b0986a commit eaff451
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion security/smack/smackfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit eaff451

Please sign in to comment.