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>
This commit is contained in:
Sritej Velaga 2012-02-03 11:35:12 +00:00 committed by David S. Miller
parent 83f18a557c
commit db608c129b
1 changed files with 5 additions and 1 deletions

View File

@ -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