From 0049363c9253d27f66e177da3c9a62fff6dcad06 Mon Sep 17 00:00:00 2001 From: Sanjana Sanikommu Date: Thu, 21 Mar 2019 13:24:04 +0530 Subject: [PATCH] staging: rtl8188eu: core: rtw_mlme: Remove return variables. The last two lines in the function could be compressed into one. Avoid usage of local variable. Issue found with Coccinelle using ret.cocci. Signed-off-by: Sanjana Sanikommu Signed-off-by: Greg Kroah-Hartman --- drivers/staging/rtl8188eu/core/rtw_mlme.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_mlme.c b/drivers/staging/rtl8188eu/core/rtw_mlme.c index 2b5aaa940957..9a4aad5ec365 100644 --- a/drivers/staging/rtl8188eu/core/rtw_mlme.c +++ b/drivers/staging/rtl8188eu/core/rtw_mlme.c @@ -1632,8 +1632,7 @@ int rtw_set_key(struct adapter *adapter, struct security_priv *psecuritypriv, in pcmd->rsp = NULL; pcmd->rspsz = 0; INIT_LIST_HEAD(&pcmd->list); - res = rtw_enqueue_cmd(pcmdpriv, pcmd); - return res; + return rtw_enqueue_cmd(pcmdpriv, pcmd); err_free_parm: kfree(psetkeyparm); -- 2.30.2