Patchwork [net-next,7/8] qlge: Don't fail open when port is not initialized.

login
register
mail settings
Submitter Ron Mercer
Date Oct. 10, 2009, 7:35 p.m.
Message ID <1255203310-18114-8-git-send-email-ron.mercer@qlogic.com>
Download mbox | patch
Permalink /patch/35676/
State Accepted
Delegated to: David Miller
Headers show

Comments

Ron Mercer - Oct. 10, 2009, 7:35 p.m.
Signed-off-by: Ron Mercer <ron.mercer@qlogic.com>
---
 drivers/net/qlge/qlge_main.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

Patch

diff --git a/drivers/net/qlge/qlge_main.c b/drivers/net/qlge/qlge_main.c
index 09247ab..9eefb11 100644
--- a/drivers/net/qlge/qlge_main.c
+++ b/drivers/net/qlge/qlge_main.c
@@ -3310,10 +3310,8 @@  static int ql_adapter_initialize(struct ql_adapter *qdev)
 
 	/* Initialize the port and set the max framesize. */
 	status = qdev->nic_ops->port_initialize(qdev);
-       if (status) {
-              QPRINTK(qdev, IFUP, ERR, "Failed to start port.\n");
-              return status;
-       }
+	if (status)
+		QPRINTK(qdev, IFUP, ERR, "Failed to start port.\n");
 
 	/* Set up the MAC address and frame routing filter. */
 	status = ql_cam_route_initialize(qdev);