benet: fix set but not used warning
authorstephen hemminger <stephen@networkplumber.org>
Mon, 24 Jul 2017 17:25:20 +0000 (10:25 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 Jul 2017 19:31:37 +0000 (12:31 -0700)
warning: variable ‘netdev’ set but not used

Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be_roce.c

index 2b62841c4c63bbd3e630f465d02b9806eb0be9c3..05989aafaf321078b35ba4675a900dbc161cb51e 100644 (file)
@@ -139,10 +139,7 @@ int be_roce_register_driver(struct ocrdma_driver *drv)
        }
        ocrdma_drv = drv;
        list_for_each_entry(dev, &be_adapter_list, entry) {
-               struct net_device *netdev;
-
                _be_roce_dev_add(dev);
-               netdev = dev->netdev;
        }
        mutex_unlock(&be_adapter_list_lock);
        return 0;