From: Nishka Dasgupta Date: Thu, 21 Mar 2019 20:13:56 +0000 (+0530) Subject: staging: rtl8723bs: core: Remove return variables in rtw_mlme_ext.c X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=63ff599a76a6cc0e1835fdeeccd808fcfc51b2e3;p=linux.git staging: rtl8723bs: core: Remove return variables in rtw_mlme_ext.c Remove unnecessary local return variables in rtw_mlme_ext.c. Issue found with Coccinelle using ret.cocci. Signed-off-by: Nishka Dasgupta Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c b/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c index c2884c35c4601..d97c1e6d5c015 100644 --- a/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c +++ b/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c @@ -3569,7 +3569,6 @@ exit: */ s32 issue_nulldata_in_interrupt(struct adapter *padapter, u8 *da) { - int ret; struct mlme_ext_priv *pmlmeext; struct mlme_ext_info *pmlmeinfo; @@ -3581,9 +3580,7 @@ s32 issue_nulldata_in_interrupt(struct adapter *padapter, u8 *da) if (!da) da = get_my_bssid(&(pmlmeinfo->network)); - ret = _issue_nulldata(padapter, da, 0, false); - - return ret; + return _issue_nulldata(padapter, da, 0, false); } /* when wait_ack is ture, this function shoule be called at process context */