staging: r8188eu: don't restart WPS blinking unnecessarily
authorMartin Kaiser <martin@kaiser.cx>
Mon, 5 Sep 2022 20:01:41 +0000 (22:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Sep 2022 07:52:08 +0000 (09:52 +0200)
commita5f01428bb1ab5af21b72d5811f25f2a6944af01
tree2d0220e3a217025da581e0545e6a5cec95aaab34
parentd25cb8382a042ec21d725e3d819c259de20666d4
staging: r8188eu: don't restart WPS blinking unnecessarily

Simplify one of the cases in rtw_led_control. If we're already blinking
during WPS, we don't have to restart this blinking when the caller
requests it again. We can simply return and keep on blinking.

Tested-by: Michael Straube <straube.linux@gmail.com>
Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20220905200146.82259-3-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_led.c