diff options
author | Casey Schaufler <casey@schaufler-ca.com> | 2020-10-05 23:20:51 +0200 |
---|---|---|
committer | Casey Schaufler <casey@schaufler-ca.com> | 2020-10-05 23:20:51 +0200 |
commit | edd615371b668404d06699c04f5f90c4f438814a (patch) | |
tree | 7d103a41324600a9be70e746bca05e3a98784b3d /security/smack | |
parent | Smack: Fix build when NETWORK_SECMARK is not set (diff) | |
download | linux-edd615371b668404d06699c04f5f90c4f438814a.tar.xz 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.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); |