diff options
author | Sritej Velaga <sritej.velaga@qlogic.com> | 2012-02-03 11:35:12 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-02-04 15:59:29 -0500 |
commit | db608c129b5258dbdff9c221857a95bc2dc1128e (patch) | |
tree | 2fe9b5554a68c971957625c87597780be4138a26 /drivers/net/ethernet/qlogic/netxen | |
parent | 83f18a557c6d6cdc03c7821e0b596c8f8b7bdb9f (diff) | |
download | op-kernel-dev-db608c129b5258dbdff9c221857a95bc2dc1128e.zip op-kernel-dev-db608c129b5258dbdff9c221857a95bc2dc1128e.tar.gz |
netxen_nic: Fix phy link status
Pass the adapter phy link status to the caller.
Signed-off-by: Sritej Velaga <sritej.velaga@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/qlogic/netxen')
-rw-r--r-- | drivers/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 |