staging: r8188eu: clean up rtw_hal_init
authorMartin Kaiser <martin@kaiser.cx>
Sun, 6 Nov 2022 12:48:58 +0000 (13:48 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 8 Nov 2022 15:29:29 +0000 (16:29 +0100)
commitb69373787637e9b38f73ff9f8b7b03e9d9767839
treed92c404753d46dfac887e738702628f2b172dd5f
parentd44fa4cb2e30fc22b2763fd425f2c48be958354f
staging: r8188eu: clean up rtw_hal_init

Clean up the rtw_hal_init function.

Remove the status variable. Exit immediately for errors.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> # Edimax N150
Link: https://lore.kernel.org/r/20221106124901.720785-7-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/hal/hal_intf.c