Commit 46237bf3 authored by Zheng Yongjun's avatar Zheng Yongjun Committed by David S. Miller

net: microchip: Make `lan743x_pm_suspend` function return right value

drivers/net/ethernet/microchip/lan743x_main.c: In function lan743x_pm_suspend:

`ret` is set but not used. In fact, `pci_prepare_to_sleep` function value should
be the right value of `lan743x_pm_suspend` function, therefore, fix it.
Signed-off-by: default avatarZheng Yongjun <zhengyongjun3@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 573a8095
...@@ -3038,7 +3038,6 @@ static int lan743x_pm_suspend(struct device *dev) ...@@ -3038,7 +3038,6 @@ static int lan743x_pm_suspend(struct device *dev)
struct pci_dev *pdev = to_pci_dev(dev); struct pci_dev *pdev = to_pci_dev(dev);
struct net_device *netdev = pci_get_drvdata(pdev); struct net_device *netdev = pci_get_drvdata(pdev);
struct lan743x_adapter *adapter = netdev_priv(netdev); struct lan743x_adapter *adapter = netdev_priv(netdev);
int ret;
lan743x_pcidev_shutdown(pdev); lan743x_pcidev_shutdown(pdev);
...@@ -3051,9 +3050,7 @@ static int lan743x_pm_suspend(struct device *dev) ...@@ -3051,9 +3050,7 @@ static int lan743x_pm_suspend(struct device *dev)
lan743x_pm_set_wol(adapter); lan743x_pm_set_wol(adapter);
/* Host sets PME_En, put D3hot */ /* Host sets PME_En, put D3hot */
ret = pci_prepare_to_sleep(pdev); return pci_prepare_to_sleep(pdev);;
return 0;
} }
static int lan743x_pm_resume(struct device *dev) static int lan743x_pm_resume(struct device *dev)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment