Fixed warning.
This commit is contained in:
parent
62059b5dbf
commit
cbddd3c089
|
|
@ -3481,7 +3481,7 @@ static int rtl8169_suspend(struct pci_dev *pdev, pm_message_t state)
|
|||
void __iomem *ioaddr = tp->mmio_addr;
|
||||
|
||||
if (tp->ecdev)
|
||||
return;
|
||||
return -EBUSY;
|
||||
|
||||
if (!netif_running(dev))
|
||||
goto out_pci_suspend;
|
||||
|
|
@ -3512,7 +3512,7 @@ static int rtl8169_resume(struct pci_dev *pdev)
|
|||
struct rtl8169_private *tp = netdev_priv(dev);
|
||||
|
||||
if (tp->ecdev)
|
||||
return;
|
||||
return -EBUSY;
|
||||
|
||||
pci_set_power_state(pdev, PCI_D0);
|
||||
pci_restore_state(pdev);
|
||||
|
|
|
|||
Loading…
Reference in New Issue