Commit 89168293 authored by stephen hemminger's avatar stephen hemminger Committed by David S. Miller

benet: fix set but not used warning

warning: variable ‘netdev’ set but not used
Signed-off-by: default avatarStephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 351bac30
...@@ -139,10 +139,7 @@ int be_roce_register_driver(struct ocrdma_driver *drv) ...@@ -139,10 +139,7 @@ int be_roce_register_driver(struct ocrdma_driver *drv)
} }
ocrdma_drv = drv; ocrdma_drv = drv;
list_for_each_entry(dev, &be_adapter_list, entry) { list_for_each_entry(dev, &be_adapter_list, entry) {
struct net_device *netdev;
_be_roce_dev_add(dev); _be_roce_dev_add(dev);
netdev = dev->netdev;
} }
mutex_unlock(&be_adapter_list_lock); mutex_unlock(&be_adapter_list_lock);
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment