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)
commit10508ae08ed8ce8794785194ad7309f1437d43fd
treee8284bcbaca5825a70fabfaec90e896b5b0e1f19
parentcacd73e55e77f6d290d827eaf23e9bf28ed20836
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