Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 289862
b: refs/heads/master
c: db608c1
h: refs/heads/master
v: v3
  • Loading branch information
Sritej Velaga authored and David S. Miller committed Feb 4, 2012
1 parent 1a25fe9 commit 411ee5f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 83f18a557c6d6cdc03c7821e0b596c8f8b7bdb9f
refs/heads/master: db608c129b5258dbdff9c221857a95bc2dc1128e
6 changes: 5 additions & 1 deletion trunk/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 411ee5f

Please sign in to comment.