staging: r8188eu: handle rtl8188eu_inirp_init errors
authorMartin Kaiser <martin@kaiser.cx>
Mon, 6 Feb 2023 20:17:59 +0000 (21:17 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 7 Feb 2023 07:41:03 +0000 (08:41 +0100)
commitda61c45f4804707768545a7bfc227b3e580fcb09
tree81a380b9fb3af9d6883a7e80350d4fb976b09b78
parent49c41602a37b5fcad1203270eb95541e773bba0b
staging: r8188eu: handle rtl8188eu_inirp_init errors

The rtl8188eu_inirp_init returns 0 for success or a negative error code.
Handle this return value in the two places where rtl8188eu_inirp_init is
called.

Suggested-by: Pavel Skripkin <paskripkin@gmail.com>
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/20230206201800.139195-6-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/os_dep/os_intfs.c