staging: rtl8723bs: core: Remove return variables in rtw_mlme_ext.c
authorNishka Dasgupta <nishka.dasgupta@yahoo.com>
Thu, 21 Mar 2019 20:13:56 +0000 (01:43 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 22 Mar 2019 14:16:29 +0000 (15:16 +0100)
Remove unnecessary local return variables in rtw_mlme_ext.c. Issue found
with Coccinelle using ret.cocci.

Signed-off-by: Nishka Dasgupta <nishka.dasgupta@yahoo.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c

index c2884c35c4601de20eec7fe604c5a679a281b56a..d97c1e6d5c01598b3de664d24fd74a3def36fda5 100644 (file)
@@ -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 */