]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: remove set but not used variable 'nic_data'
authorYueHaibing <yuehaibing@huawei.com>
Fri, 10 Jan 2020 06:09:08 +0000 (06:09 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 11 Jan 2020 07:15:28 +0000 (23:15 -0800)
commit2e86dfe45348c24bed0e9aa945c927caf8f70805
tree9ac30dc1ee4c9103f184d1a312e86e83dca22eba
parenta3dabf35cb1e3e097bc411ffdec475b2ed3b8515
sfc: remove set but not used variable 'nic_data'

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

drivers/net/ethernet/sfc/mcdi_functions.c: In function 'efx_mcdi_ev_init':
drivers/net/ethernet/sfc/mcdi_functions.c:79:28: warning:
 variable 'nic_data' set but not used [-Wunused-but-set-variable]

commit cbcef81b6cea ("sfc: move MCDI event queue management code")
introduces this unused variable.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sfc/mcdi_functions.c