staging: r8188eu: always cancel blink_work before WPS blinking
authorMartin Kaiser <martin@kaiser.cx>
Mon, 5 Sep 2022 20:01:42 +0000 (22:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Sep 2022 07:52:08 +0000 (09:52 +0200)
commit5221e12b717f718caa7fa1f178a7b3a941d0747a
tree72df0915d8830ac64144a6e90703bea40d898858
parenta5f01428bb1ab5af21b72d5811f25f2a6944af01
staging: r8188eu: always cancel blink_work before WPS blinking

In rtw_led_control, we can always cancel a running blink worker when we
start WPS blinking.

The worker will be scheduled again and there's no point in having more
than one pending blink worker.

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