Skip to content

Commit

Permalink
netxen_nic: Fix phy link status
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sritej Velaga authored and David S. Miller committed Feb 4, 2012
1 parent 83f18a5 commit db608c1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion drivers/net/ethernet/qlogic/netxen/netxen_nic_ctx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit db608c1

Please sign in to comment.