net: qlcnic: simplify the return expression of qlcnic_83xx_shutdown
Simplify the return expression. Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
3cec036990
commit
05c3b6e79d
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user