[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1328304915-12858-4-git-send-email-rajesh.borundia@qlogic.com>
Date: Fri, 3 Feb 2012 13:35:12 -0800
From: Rajesh Borundia <rajesh.borundia@...gic.com>
To: David Miller <davem@...emloft.net>
CC: netdev <netdev@...r.kernel.org>,
Ameen Rahman <ameen.rahman@...gic.com>,
Sony Chacko <sony.chacko@...gic.com>,
Sritej Velaga <sritej.velaga@...gic.com>
Subject: [PATCH NEXT 3/6] netxen_nic: Fix phy link status
From: Sritej Velaga <sritej.velaga@...gic.com>
Pass the adapter phy link status to the caller.
Signed-off-by: Sritej Velaga <sritej.velaga@...gic.com>
---
.../net/ethernet/qlogic/netxen/netxen_nic_ctx.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/drivers/net/ethernet/qlogic/netxen/netxen_nic_ctx.c b/drivers/net/ethernet/qlogic/netxen/netxen_nic_ctx.c
index 8f89c05..f3c0057 100644
--- a/drivers/net/ethernet/qlogic/netxen/netxen_nic_ctx.c
+++ b/drivers/net/ethernet/qlogic/netxen/netxen_nic_ctx.c
@@ -559,7 +559,11 @@ nx_fw_cmd_query_phy(struct netxen_adapter *adapter, u32 reg, u32 *val)
if (rcode != NX_RCODE_SUCCESS)
return -EIO;
- return cmd.rsp.arg1;
+ if (val == NULL)
+ return -EIO;
+
+ *val = cmd.rsp.arg1;
+ return 0;
}
int
--
1.7.3.3
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists