Commit eaff451d authored by Michal Orzel's avatar Michal Orzel Committed by Casey Schaufler

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: default avatarMichal Orzel <michalorzel.eng@gmail.com>
Signed-off-by: default avatarCasey Schaufler <casey@schaufler-ca.com>
parent 4b0986a3
......@@ -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) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment