From edd615371b668404d06699c04f5f90c4f438814a Mon Sep 17 00:00:00 2001 From: Casey Schaufler Date: Mon, 5 Oct 2020 14:20:51 -0700 Subject: Smack: Remove unnecessary variable initialization The initialization of rc in smack_from_netlbl() is pointless. Reported-by: kernel test robot Signed-off-by: Casey Schaufler --- security/smack/smack_lsm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3