mirror of
https://github.com/torvalds/linux.git
synced 2026-09-14 16:10:02 +02:00
staging: rtl8723bs: os_dep: Change return type of function rtw_suspend_normal() to void
Coccicheck issues Unneeded variable "ret" warning. The return value of function rtw_suspend_normal() is set to _SUCCESS. The return value is never never checked by the calling function. Modified return type to void to remove the coccicheck warning.. Signed-off-by: Shobhit Kukreti <shobhitkukreti@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
864e69d0d1
commit
aa0d54db92
|
|
@ -1418,10 +1418,9 @@ int rtw_suspend_ap_wow(struct adapter *padapter)
|
|||
#endif /* ifdef CONFIG_AP_WOWLAN */
|
||||
|
||||
|
||||
static int rtw_suspend_normal(struct adapter *padapter)
|
||||
static void rtw_suspend_normal(struct adapter *padapter)
|
||||
{
|
||||
struct net_device *pnetdev = padapter->pnetdev;
|
||||
int ret = _SUCCESS;
|
||||
|
||||
DBG_871X("==> " FUNC_ADPT_FMT " entry....\n", FUNC_ADPT_ARG(padapter));
|
||||
if (pnetdev) {
|
||||
|
|
@ -1443,7 +1442,6 @@ static int rtw_suspend_normal(struct adapter *padapter)
|
|||
padapter->intf_deinit(adapter_to_dvobj(padapter));
|
||||
|
||||
DBG_871X("<== " FUNC_ADPT_FMT " exit....\n", FUNC_ADPT_ARG(padapter));
|
||||
return ret;
|
||||
}
|
||||
|
||||
int rtw_suspend_common(struct adapter *padapter)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user