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)
commit8f60cb9534e459d66f6888038951ffd74351ef25
tree2fa296a828e58d77e8402712f510d19f5ddd60c4
parentbf0d687586f62db4f7000456c63a45c23b08bbb2
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