All of lore.kernel.org
 help / color / mirror / Atom feed
* staging: rtl8723bs: bug or pointless if else ?
@ 2018-06-28  7:43 Michael Straube
  2018-06-28  8:22 ` Hans de Goede
  2018-06-28 10:24 ` Greg Kroah-Hartman
  0 siblings, 2 replies; 7+ messages in thread
From: Michael Straube @ 2018-06-28  7:43 UTC (permalink / raw)
  To: Greg Kroah-Hartman; +Cc: hadess, hdegoede, Larry.Finger, devel, linux-kernel

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-06-28 20:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-28  7:43 staging: rtl8723bs: bug or pointless if else ? Michael Straube
2018-06-28  8:22 ` Hans de Goede
2018-06-28  9:34   ` Bastien Nocera
2018-06-28 15:00     ` Michael Straube
2018-06-28 15:01       ` Hans de Goede
2018-06-28 20:36     ` Joe Perches
2018-06-28 10:24 ` Greg Kroah-Hartman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.