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

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


From: Zheng Yongjun <zhengyongjun3@xxxxxxxxxx>
Date: Sat, 19 Sep 2020 09:50:20 +0800

> Fixes gcc '-Wunused-but-set-variable' warning:
>
> drivers/net/ethernet/intel/e1000/e1000_hw.c: In function e1000_phy_init_script:
> drivers/net/ethernet/intel/e1000/e1000_hw.c:132:6: warning: variable ʽret_valʼ set but not used [-Wunused-but-set-variable]
>
> `ret_val` is never used, so remove it.
>
> Signed-off-by: Zheng Yongjun <zhengyongjun3@xxxxxxxxxx>

Applied.