be2net: Patch removes redundant while statement in loop.
authorSarveshwar Bandi <sarveshwarb@serverengines.com>
Thu, 27 May 2010 23:28:15 +0000 (16:28 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 May 2010 08:57:18 +0000 (01:57 -0700)
Signed-off-by: Sarveshwar Bandi <sarveshwarb@serverengines.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/benet/be_main.c

index aa065c71ddd8647655fd992d635e48c1cf45c749..54b14272f333330edc9cddbce502d7e0068103ba 100644 (file)
@@ -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);