Skip to content

Commit

Permalink
Smack: Remove unnecessary variable initialization
Browse files Browse the repository at this point in the history
The initialization of rc in smack_from_netlbl() is pointless.

Reported-by: kernel test robot <[email protected]>
Signed-off-by: Casey Schaufler <[email protected]>
  • Loading branch information
cschaufler committed Oct 5, 2020
1 parent bf0afe6 commit edd6153
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion security/smack/smack_lsm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit edd6153

Please sign in to comment.