staging: rtl8192e: _rtl92e_fw_boot_cpu: Remove unneeded goto

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>
This commit is contained in:
Mateusz Kulikowski 2015-10-19 22:00:30 +02:00 committed by Greg Kroah-Hartman
parent 91d7b8cf7c
commit b0dcce5fbf

View 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,