diff options
author | stephen hemminger <stephen@networkplumber.org> | 2017-01-24 13:06:06 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-01-24 16:28:59 -0500 |
commit | ceaaea0483cf82a2c817781f3cbacf29f2c5cc97 (patch) | |
tree | fdf4bd5b267de5eb15779de60917fc7cf9467240 /drivers/net/hyperv/netvsc_drv.c | |
parent | d8e18ee0fa9679e24aa1dacb1edc7bf934c8ddd4 (diff) | |
download | blackbird-op-linux-ceaaea0483cf82a2c817781f3cbacf29f2c5cc97.tar.gz blackbird-op-linux-ceaaea0483cf82a2c817781f3cbacf29f2c5cc97.zip |
netvsc: remove unused variables
Fixes set but never used warnings
Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/hyperv/netvsc_drv.c')
-rw-r--r-- | drivers/net/hyperv/netvsc_drv.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/net/hyperv/netvsc_drv.c b/drivers/net/hyperv/netvsc_drv.c index 86feab3f5443..f96b44eee270 100644 --- a/drivers/net/hyperv/netvsc_drv.c +++ b/drivers/net/hyperv/netvsc_drv.c @@ -1390,7 +1390,6 @@ static int netvsc_vf_down(struct net_device *vf_netdev) static int netvsc_unregister_vf(struct net_device *vf_netdev) { struct net_device *ndev; - struct netvsc_device *netvsc_dev; struct net_device_context *net_device_ctx; ndev = get_netvsc_byref(vf_netdev); @@ -1398,7 +1397,6 @@ static int netvsc_unregister_vf(struct net_device *vf_netdev) return NOTIFY_DONE; net_device_ctx = netdev_priv(ndev); - netvsc_dev = net_device_ctx->nvdev; netdev_info(ndev, "VF unregistering: %s\n", vf_netdev->name); @@ -1507,7 +1505,6 @@ static int netvsc_remove(struct hv_device *dev) { struct net_device *net; struct net_device_context *ndev_ctx; - struct netvsc_device *net_device; net = hv_get_drvdata(dev); @@ -1517,7 +1514,6 @@ static int netvsc_remove(struct hv_device *dev) } ndev_ctx = netdev_priv(net); - net_device = ndev_ctx->nvdev; /* Avoid racing with netvsc_change_mtu()/netvsc_set_channels() * removing the device. |