staging: r8188eu: convert type of return variable in load_firmware()
authorMichael Straube <straube.linux@gmail.com>
Fri, 7 Jan 2022 10:36:07 +0000 (11:36 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Jan 2022 15:13:43 +0000 (16:13 +0100)
The return type of load_firmware() is int. Change the type of the
return variable from s32 to int to match the function return type.

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20220107103620.15648-7-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/hal/rtl8188e_hal_init.c

index edb56a9..bd7f3dc 100644 (file)
@@ -510,7 +510,7 @@ static s32 _FWFreeToGo(struct adapter *padapter)
 
 static int load_firmware(struct rt_firmware *pFirmware, struct device *device)
 {
-       s32 ret = _SUCCESS;
+       int ret = _SUCCESS;
        const struct firmware *fw;
        const char *fw_name = "rtlwifi/rtl8188eufw.bin";
        int err = request_firmware(&fw, fw_name, device);