]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
net: qlcnic: simplify the return expression of qlcnic_83xx_shutdown
authorQinglang Miao <miaoqinglang@huawei.com>
Mon, 21 Sep 2020 13:10:46 +0000 (21:10 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Sep 2020 20:43:36 +0000 (13:43 -0700)
Simplify the return expression.

Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c

index fc490881cd03eaf36461e2935f6858fda2d3a2fb..1753736c56f7bdde420a6dad4c972b53ad0b4188 100644 (file)
@@ -3812,7 +3812,6 @@ static int qlcnic_83xx_shutdown(struct pci_dev *pdev)
 {
        struct qlcnic_adapter *adapter = pci_get_drvdata(pdev);
        struct net_device *netdev = adapter->netdev;
-       int retval;
 
        netif_device_detach(netdev);
        qlcnic_cancel_idc_work(adapter);
@@ -3823,11 +3822,7 @@ static int qlcnic_83xx_shutdown(struct pci_dev *pdev)
        qlcnic_83xx_disable_mbx_intr(adapter);
        cancel_delayed_work_sync(&adapter->idc_aen_work);
 
-       retval = pci_save_state(pdev);
-       if (retval)
-               return retval;
-
-       return 0;
+       return pci_save_state(pdev);
 }
 
 static int qlcnic_83xx_resume(struct qlcnic_adapter *adapter)