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>
This commit is contained in:
Casey Schaufler 2020-10-05 14:20:51 -07:00
parent bf0afe673b
commit edd615371b
1 changed files with 1 additions and 1 deletions

View File

@ -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);