Skip to content

Commit edd6153

Browse files
committed
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>
1 parent bf0afe6 commit edd6153

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

security/smack/smack_lsm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3870,7 +3870,7 @@ static struct smack_known *smack_from_netlbl(struct sock *sk, u16 family,
38703870
struct netlbl_lsm_secattr secattr;
38713871
struct socket_smack *ssp = NULL;
38723872
struct smack_known *skp = NULL;
3873-
int rc = 0;
3873+
int rc;
38743874

38753875
netlbl_secattr_init(&secattr);
38763876

0 commit comments

Comments
 (0)