Skip to content

Commit

Permalink
drivers: net: qlcnic: simplify the return expression of qlcnic_sriov_…
Browse files Browse the repository at this point in the history
…vf_shutdown()

Simplify the return expression.

Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Zheng Yongjun authored and David S. Miller committed Dec 9, 2020
1 parent 10dd7b4 commit 6eea392
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c
Original file line number Diff line number Diff line change
@@ -2112,7 +2112,6 @@ static int qlcnic_sriov_vf_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);
@@ -2125,11 +2124,7 @@ static int qlcnic_sriov_vf_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_sriov_vf_resume(struct qlcnic_adapter *adapter)

0 comments on commit 6eea392

Please sign in to comment.