Re: [PATCH net-next] net: cortina: Remove set but not used variable
From: David Miller
Date: Fri Sep 18 2020 - 17:33:58 EST
From: Zheng Yongjun <zhengyongjun3@xxxxxxxxxx>
Date: Fri, 18 Sep 2020 16:49:51 +0800
> Fixes gcc '-Wunused-but-set-variable' warning:
>
> drivers/net/ethernet/cortina/gemini.c: In function gmac_get_ringparam:
> drivers/net/ethernet/cortina/gemini.c:2125:21: warning: variable ʽconfig0ʼ set but not used [-Wunused-but-set-variable]
>
> drivers/net/ethernet/cortina/gemini.c: In function gmac_init:
> drivers/net/ethernet/cortina/gemini.c:512:6: warning: variable ʽvalʼ set but not used [-Wunused-but-set-variable]
>
> these variable is never used, so remove it.
>
> Signed-off-by: Zheng Yongjun <zhengyongjun3@xxxxxxxxxx>
Applied.