]> git.baikalelectronics.ru Git - kernel.git/commit
net: natsemi: Remove set but not used variable
authorZheng Yongjun <zhengyongjun3@huawei.com>
Mon, 21 Sep 2020 12:18:41 +0000 (20:18 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Sep 2020 21:54:00 +0000 (14:54 -0700)
commit39d89609e46674722f657085bfb7b6037d9920c4
tree72702bd7c00bb75b8e99515606fc78465e6c891b
parent8d6b58fa5ee66cb729af23ee2aab111f188ffe99
net: natsemi: Remove set but not used variable

Fixes gcc '-Wunused-but-set-variable' warning:

drivers/net/ethernet/natsemi/ns83820.c: In function ns83820_get_link_ksettings:
drivers/net/ethernet/natsemi/ns83820.c:1210:11: warning: variable ‘tanar’ set but not used [-Wunused-but-set-variable]

`tanar` is never used, so remove it.

Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/natsemi/ns83820.c