staging: rtl8723bs: Change the return type

Remove the ret variable in rtw_suspend_common() and change
the return type from int to void as rtw_suspend_common()
always return zero unconditionally.

Signed-off-by: Saurav Girepunje <saurav.girepunje@gmail.com>
Link: https://lore.kernel.org/r/20210428175520.GA8921@user
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Saurav Girepunje 2021-04-28 23:25:20 +05:30 committed by Greg Kroah-Hartman
parent 62409b31db
commit a616d1212a
3 changed files with 6 additions and 5 deletions

View File

@ -66,7 +66,7 @@ void rtw_ips_pwr_down(struct adapter *padapter);
int rtw_drv_register_netdev(struct adapter *padapter);
void rtw_ndev_destructor(struct net_device *ndev);
int rtw_suspend_common(struct adapter *padapter);
void rtw_suspend_common(struct adapter *padapter);
int rtw_resume_common(struct adapter *padapter);
int netdev_open(struct net_device *pnetdev);

View File

@ -1150,14 +1150,13 @@ static void rtw_suspend_normal(struct adapter *padapter)
padapter->intf_deinit(adapter_to_dvobj(padapter));
}
int rtw_suspend_common(struct adapter *padapter)
void rtw_suspend_common(struct adapter *padapter)
{
struct dvobj_priv *psdpriv = padapter->dvobj;
struct debug_priv *pdbgpriv = &psdpriv->drv_dbg;
struct pwrctrl_priv *pwrpriv = dvobj_to_pwrctl(psdpriv);
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
int ret = 0;
unsigned long start_time = jiffies;
netdev_dbg(padapter->pnetdev, " suspend start\n");
@ -1200,7 +1199,7 @@ int rtw_suspend_common(struct adapter *padapter)
exit:
return ret;
return;
}
static int rtw_resume_process_normal(struct adapter *padapter)

View File

@ -447,7 +447,9 @@ static int rtw_sdio_suspend(struct device *dev)
return 0;
}
return rtw_suspend_common(padapter);
rtw_suspend_common(padapter);
return 0;
}
static int rtw_resume_process(struct adapter *padapter)