Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 119094
b: refs/heads/master
c: 3ee8238
h: refs/heads/master
v: v3
  • Loading branch information
Giulio Benetti authored and David S. Miller committed Nov 16, 2008
1 parent 3c48a8d commit 7452ddd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: 773c9c1f77174429ad2feb1735a3beb33ff3b6c0
refs/heads/master: 3ee82383f0098a2e13acc8cf1be8e47512f41e5a
4 changes: 2 additions & 2 deletions trunk/drivers/net/phy/phy_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,8 @@ struct phy_device * get_phy_device(struct mii_bus *bus, int addr)
if (r)
return ERR_PTR(r);

/* If the phy_id is all Fs, there is no device there */
if (0xffffffff == phy_id)
/* If the phy_id is all Fs or all 0s, there is no device there */
if ((0xffff == phy_id) || (0x00 == phy_id))
return NULL;

dev = phy_device_create(bus, addr, phy_id);
Expand Down

0 comments on commit 7452ddd

Please sign in to comment.