From: stephen hemminger Date: Mon, 24 Jul 2017 17:25:20 +0000 (-0700) Subject: benet: fix set but not used warning X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8916829366c17a12c996a10da43c7f9d2e5e7039;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git benet: fix set but not used warning warning: variable ‘netdev’ set but not used Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/emulex/benet/be_roce.c b/drivers/net/ethernet/emulex/benet/be_roce.c index 2b62841c4c63..05989aafaf32 100644 --- a/drivers/net/ethernet/emulex/benet/be_roce.c +++ b/drivers/net/ethernet/emulex/benet/be_roce.c @@ -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;