staging: rtl8192e: _rtl92e_fw_boot_cpu: Remove unneeded goto
authorMateusz Kulikowski <mateusz.kulikowski@gmail.com>
Mon, 19 Oct 2015 20:00:30 +0000 (22:00 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Oct 2015 02:23:13 +0000 (19:23 -0700)
Drop ugly label as no resource cleanup is needed.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl8192e/r8192E_firmware.c

index becf062..9aaa855 100644 (file)
@@ -38,7 +38,7 @@ static bool _rtl92e_fw_boot_cpu(struct net_device *dev)
 
        if (!_rtl92e_wait_for_fw(dev, CPU_GEN_PUT_CODE_OK, 200)) {
                netdev_err(dev, "Firmware download failed.\n");
-               goto CPUCheckMainCodeOKAndTurnOnCPU_Fail;
+               return false;
        }
        netdev_dbg(dev, "Download Firmware: Put code ok!\n");
 
@@ -49,15 +49,12 @@ static bool _rtl92e_fw_boot_cpu(struct net_device *dev)
 
        if (!_rtl92e_wait_for_fw(dev, CPU_GEN_BOOT_RDY, 200)) {
                netdev_err(dev, "Firmware boot failed.\n");
-               goto CPUCheckMainCodeOKAndTurnOnCPU_Fail;
+               return false;
        }
 
        netdev_dbg(dev, "Download Firmware: Boot ready!\n");
 
        return true;
-
-CPUCheckMainCodeOKAndTurnOnCPU_Fail:
-       return false;
 }
 
 static bool _rtl92e_fw_check_ready(struct net_device *dev,