Messages in this thread | | | Date | Fri, 18 Sep 2020 14:33:55 -0700 (PDT) | Subject | Re: [PATCH net-next] net: cortina: Remove set but not used variable | From | David Miller <> |
| |
From: Zheng Yongjun <zhengyongjun3@huawei.com> 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@huawei.com>
Applied.
| |