Re: [PATCH net-next] net: microchip: Remove set but not used variable

From: David Miller
Date: Sat Sep 19 2020 - 17:09:17 EST


From: Zheng Yongjun <zhengyongjun3@xxxxxxxxxx>
Date: Sat, 19 Sep 2020 10:37:32 +0800

> `ret` is never used, so remove it.

You are not removing it:

> @@ -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;
> }

In fact, you are making it get used properly.

Please fix your commit message.