Skip to content

Commit eaff451

Browse files
orzelmichalcschaufler
authored andcommitted
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>
1 parent 4b0986a commit eaff451

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

security/smack/smackfs.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1192,7 +1192,6 @@ static ssize_t smk_write_net4addr(struct file *file, const char __user *buf,
11921192
rc = -EINVAL;
11931193
goto free_out;
11941194
}
1195-
m = BEBITS;
11961195
masks = 32;
11971196
}
11981197
if (masks > BEBITS) {

0 commit comments

Comments
 (0)