]> git.baikalelectronics.ru Git - kernel.git/commit
staging: r8188eu: hal: remove goto statement and local variable
authorSaurav Girepunje <saurav.girepunje@gmail.com>
Wed, 27 Oct 2021 04:38:08 +0000 (10:08 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 30 Oct 2021 09:15:55 +0000 (11:15 +0200)
commit240d14972c2ccde5b73afdc11c733c94333b2d92
treee8284bcbaca5825a70fabfaec90e896b5b0e1f19
parent7d6b884cbdc1332ff8b66ed666eb2e9f22a8d693
staging: r8188eu: hal: remove goto statement and local variable

Remove the goto statement from FillH2CCmd_88E(). In this function goto
can be replace by return statement. As on goto label exit, function
only return it is not performing any cleanup. Avoiding goto will
improve the function readability. After replacing the goto statement
local variable ret is also not needed. So remove the ret local variable.

Signed-off-by: Saurav Girepunje <saurav.girepunje@gmail.com>
Link: https://lore.kernel.org/r/YXjXsChOpaTThkxT@Sauravs-Air.domain.name
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/hal/rtl8188e_cmd.c