mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-03 23:58:05 +00:00
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 <sanjana99reddy99@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
c896c89066
commit
0049363c92
1 changed files with 1 additions and 2 deletions
|
@ -1632,8 +1632,7 @@ int rtw_set_key(struct adapter *adapter, struct security_priv *psecuritypriv, in
|
||||||
pcmd->rsp = NULL;
|
pcmd->rsp = NULL;
|
||||||
pcmd->rspsz = 0;
|
pcmd->rspsz = 0;
|
||||||
INIT_LIST_HEAD(&pcmd->list);
|
INIT_LIST_HEAD(&pcmd->list);
|
||||||
res = rtw_enqueue_cmd(pcmdpriv, pcmd);
|
return rtw_enqueue_cmd(pcmdpriv, pcmd);
|
||||||
return res;
|
|
||||||
|
|
||||||
err_free_parm:
|
err_free_parm:
|
||||||
kfree(psetkeyparm);
|
kfree(psetkeyparm);
|
||||||
|
|
Loading…
Reference in a new issue