From: Sarveshwar Bandi Date: Thu, 27 May 2010 23:28:15 +0000 (-0700) Subject: be2net: Patch removes redundant while statement in loop. X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=84e5b9f75b48fe4a1e4ee72698230701439d0805;p=linux-beck.git be2net: Patch removes redundant while statement in loop. Signed-off-by: Sarveshwar Bandi Signed-off-by: David S. Miller --- diff --git a/drivers/net/benet/be_main.c b/drivers/net/benet/be_main.c index aa065c71ddd8..54b14272f333 100644 --- a/drivers/net/benet/be_main.c +++ b/drivers/net/benet/be_main.c @@ -1861,7 +1861,7 @@ static int be_setup(struct be_adapter *adapter) goto if_destroy; } vf++; - } while (vf < num_vfs); + } } else if (!be_physfn(adapter)) { status = be_cmd_mac_addr_query(adapter, mac, MAC_ADDRESS_TYPE_NETWORK, false, adapter->if_handle);