diff options
author | Casey Schaufler <casey@schaufler-ca.com> | 2020-10-06 00:20:51 +0300 |
---|---|---|
committer | Casey Schaufler <casey@schaufler-ca.com> | 2020-10-06 00:20:51 +0300 |
commit | edd615371b668404d06699c04f5f90c4f438814a (patch) | |
tree | 7d103a41324600a9be70e746bca05e3a98784b3d /security | |
parent | bf0afe673b999439b6a53c75727821795ccb27e2 (diff) | |
download | linux-edd615371b668404d06699c04f5f90c4f438814a.tar.xz |
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')
-rw-r--r-- | security/smack/smack_lsm.c | 2 |
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); |