]> git.baikalelectronics.ru Git - kernel.git/commit
staging: r8188eu: remove duplicate bSurpriseRemoved check
authorMartin Kaiser <martin@kaiser.cx>
Sun, 18 Sep 2022 17:56:59 +0000 (19:56 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 24 Sep 2022 11:09:18 +0000 (13:09 +0200)
commit695e3f52c78733cbaafe3885c180c669f7de2d77
tree2fa296a828e58d77e8402712f510d19f5ddd60c4
parent7f43bd098ea38e06f871e8db0c5745c8044eebe9
staging: r8188eu: remove duplicate bSurpriseRemoved check

We don't have to check bSurpriseRemoved in the SwLedOn function.

SwLedOn calls rtw_read8 which in turn calls usb_read. This function checks
bSurpriseRemoved for us.

Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> # Edimax N150
Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20220918175700.215170-6-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_led.c