diff options
author | YueHaibing <yuehaibing@huawei.com> | 2019-04-03 15:54:09 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-04-04 17:36:24 -0700 |
commit | 53a6b206e36f160dbaa5727e68f8418de0b10bbf (patch) | |
tree | 58b947e08cbd101178949b32fb5933f3e72a9696 /drivers/net/ethernet/ibm | |
parent | fe1ec0bdfba4e7bfe6db81a1e4ac74beb36691e8 (diff) | |
download | linux-next-53a6b206e36f160dbaa5727e68f8418de0b10bbf.tar.gz |
ibmvnic: remove set but not used variable 'netdev'
Fixes gcc '-Wunused-but-set-variable' warning:
drivers/net/ethernet/ibm/ibmvnic.c: In function '__ibmvnic_reset':
drivers/net/ethernet/ibm/ibmvnic.c:1971:21: warning: variable 'netdev' set but not used [-Wunused-but-set-variable]
It's never used since introduction in
commit ed651a10875f ("ibmvnic: Updated reset handling")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Reviewed-by: Mukesh Ojha <mojha@codeaurora.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/ibm')
-rw-r--r-- | drivers/net/ethernet/ibm/ibmvnic.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/ethernet/ibm/ibmvnic.c b/drivers/net/ethernet/ibm/ibmvnic.c index 25b8e04ef11a..20c4e0835ba8 100644 --- a/drivers/net/ethernet/ibm/ibmvnic.c +++ b/drivers/net/ethernet/ibm/ibmvnic.c @@ -1968,13 +1968,11 @@ static void __ibmvnic_reset(struct work_struct *work) { struct ibmvnic_rwi *rwi; struct ibmvnic_adapter *adapter; - struct net_device *netdev; bool we_lock_rtnl = false; u32 reset_state; int rc = 0; adapter = container_of(work, struct ibmvnic_adapter, ibmvnic_reset); - netdev = adapter->netdev; /* netif_set_real_num_xx_queues needs to take rtnl lock here * unless wait_for_reset is set, in which case the rtnl lock |