[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <473d9997-8c30-a3f3-85b6-076decc7a7c2@gmail.com>
Date: Thu, 28 Jun 2018 09:43:47 +0200
From: Michael Straube <straube.linux@...il.com>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: hadess@...ess.net, hdegoede@...hat.com, Larry.Finger@...inger.net,
devel@...verdev.osuosl.org, linux-kernel@...r.kernel.org
Subject: staging: rtl8723bs: bug or pointless if else ?
Hi,
I stumbled upon the following if else construct in
drivers/staging/rtl8723bs/os_dep/sdio_intf.c:618
if (pwrpriv->bInternalAutoSuspend)
{
ret = rtw_resume_process(padapter);
}
else
{
if (pwrpriv->wowlan_mode || pwrpriv->wowlan_ap_mode)
{
ret = rtw_resume_process(padapter);
}
else
{
ret = rtw_resume_process(padapter);
}
}
It does not matter if the conditions are true or not,
ret is always set to:
ret = rtw_resume_process(padapter)
Is this a bug or is the if else construct just pointless?
Regards,
Michael
Powered by blists - more mailing lists