Commit db608c12 authored by Sritej Velaga's avatar Sritej Velaga Committed by David S. Miller

netxen_nic: Fix phy link status

Pass the adapter phy link status to the caller.
Signed-off-by: default avatarSritej Velaga <sritej.velaga@qlogic.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 83f18a55
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment