staging: rtl8188eu: remove unnecessary asignment
authorMichael Straube <straube.linux@gmail.com>
Sun, 5 Apr 2020 11:22:29 +0000 (13:22 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 Apr 2020 06:55:32 +0000 (08:55 +0200)
commit2d90027bdde125665dd3e8f0bc3d15e901e5faf0
tree39d73019ae2064f0f7ac3312a005214acf9bfdf6
parentc5a906e391d9acc8e9c354e8f782752bb6985953
staging: rtl8188eu: remove unnecessary asignment

Remove unnecessary asignment in SwLedBlink1(). The code path with the
asignment 'pLed->BlinkTimes = 0' is only executed when
'pLed->BlinkTimes' is already zero and the value is not changed between
the test 'if (pLed->BlinkTimes == 0)' and the asignment.

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20200405112230.31975-1-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_led.c