mirror of https://gitee.com/openkylin/linux.git
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:
parent
83f18a557c
commit
db608c129b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue