]> asedeno.scripts.mit.edu Git - linux.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)
commit6821af8b7885870ed0dcb299e4b3cd38695538bc
tree9ac30dc1ee4c9103f184d1a312e86e83dca22eba
parentde4ff8341f59d9893b9c1bd3b26d2f6c9d9a2dd2
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 4438b587fe4b ("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