be2net: Patch removes redundant while statement in loop.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Friday, May 28, 2010 - 11:59 am

Gitweb:     http://git.kernel.org/linus/84e5b9f75b48fe4a1e4ee72698230701439d0805
Commit:     84e5b9f75b48fe4a1e4ee72698230701439d0805
Parent:     0aa68271510ae2b221d4b60892103837be63afe4
Author:     Sarveshwar Bandi <sarveshwarb@serverengines.com>
AuthorDate: Thu May 27 16:28:15 2010 -0700
Committer:  David S. Miller <davem@davemloft.net>
CommitDate: Fri May 28 01:57:18 2010 -0700

    be2net: Patch removes redundant while statement in loop.
    
    Signed-off-by: Sarveshwar Bandi <sarveshwarb@serverengines.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
---
 drivers/net/benet/be_main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/benet/be_main.c b/drivers/net/benet/be_main.c
index aa065c7..54b1427 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);
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
be2net: Patch removes redundant while statement in loop., Linux Kernel Mailing ..., (Fri May 28, 11:59 am)