From: Sanjana Sanikommu Date: Thu, 21 Mar 2019 07:54:04 +0000 (+0530) Subject: staging: rtl8188eu: core: rtw_mlme: Remove return variables. X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=0049363c9253d27f66e177da3c9a62fff6dcad06;p=openwrt%2Fstaging%2Fblogic.git 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 --- 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);