summaryrefslogtreecommitdiffstats
path: root/security/smack
diff options
context:
space:
mode:
authorCasey Schaufler <casey@schaufler-ca.com>2020-10-05 14:20:51 -0700
committerCasey Schaufler <casey@schaufler-ca.com>2020-10-05 14:20:51 -0700
commitedd615371b668404d06699c04f5f90c4f438814a (patch)
tree7d103a41324600a9be70e746bca05e3a98784b3d /security/smack
parentbf0afe673b999439b6a53c75727821795ccb27e2 (diff)
downloadlinux-edd615371b668404d06699c04f5f90c4f438814a.tar.gz
linux-edd615371b668404d06699c04f5f90c4f438814a.tar.bz2
linux-edd615371b668404d06699c04f5f90c4f438814a.zip
Smack: Remove unnecessary variable initialization
The initialization of rc in smack_from_netlbl() is pointless. Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
Diffstat (limited to 'security/smack')
-rw-r--r--security/smack/smack_lsm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/smack/smack_lsm.c b/security/smack/smack_lsm.c
index aa60a9468734..db2d455b80a8 100644
--- a/security/smack/smack_lsm.c
+++ b/security/smack/smack_lsm.c
@@ -3870,7 +3870,7 @@ static struct smack_known *smack_from_netlbl(struct sock *sk, u16 family,
struct netlbl_lsm_secattr secattr;
struct socket_smack *ssp = NULL;
struct smack_known *skp = NULL;
- int rc = 0;
+ int rc;
netlbl_secattr_init(&secattr);