summaryrefslogtreecommitdiffstats
path: root/sys/dev/mii/rlphy.c
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2007-01-21 19:28:00 +0000
committermarius <marius@FreeBSD.org>2007-01-21 19:28:00 +0000
commit32ccb0b9691d9721a82fc29bc9002a655b8622b6 (patch)
tree47d6d4c09dfc327c5f5a6e61adbedfc47cea47de /sys/dev/mii/rlphy.c
parent1542e0642c094569dc9068eea353647d6f7eec2c (diff)
downloadFreeBSD-src-32ccb0b9691d9721a82fc29bc9002a655b8622b6.zip
FreeBSD-src-32ccb0b9691d9721a82fc29bc9002a655b8622b6.tar.gz
Correct a logic bug in the previous change.
Diffstat (limited to 'sys/dev/mii/rlphy.c')
-rw-r--r--sys/dev/mii/rlphy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/mii/rlphy.c b/sys/dev/mii/rlphy.c
index 243b608..07acaa9 100644
--- a/sys/dev/mii/rlphy.c
+++ b/sys/dev/mii/rlphy.c
@@ -107,7 +107,7 @@ rlphy_probe(device_t dev)
return (rv);
nic = device_get_name(device_get_parent(device_get_parent(dev)));
- if (strcmp(nic, "rl") == 0 && strcmp(nic, "re") == 0)
+ if (strcmp(nic, "rl") == 0 || strcmp(nic, "re") == 0)
return (mii_phy_dev_probe(dev, rlintphys, BUS_PROBE_DEFAULT));
return (ENXIO);
}
OpenPOWER on IntegriCloud