From: Zheng Yongjun
Date: Mon, 21 Sep 2020 20:08:18 +0800
> @@ -3053,7 +3053,7 @@ static int lan743x_pm_suspend(struct device *dev)
> /* Host sets PME_En, put D3hot */
> ret = pci_prepare_to_sleep(pdev);
>
> - return 0;
> + return ret;
> }
Instead please do:
drivers/net/ethernet/microchip/lan743x_main.c: In function lan743x_pm_suspend:
`ret` is set but not used. In fact, `ret` should be the right value of
`lan743x_pm_suspend`
function, therefore, fix it.
Signed-off-by: Zheng Yongjun
---
drivers/net/ethernet/microchip/lan743x_main.c | 2 +-
1 file
2 matches
Mail list logo