提交 db608c12 编写于 作者: S Sritej Velaga 提交者: David S. Miller

netxen_nic: Fix phy link status

Pass the adapter phy link status to the caller.
Signed-off-by: NSritej Velaga <sritej.velaga@qlogic.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册