aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ed
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2005-03-05 18:30:12 +0000
committerWarner Losh <imp@FreeBSD.org>2005-03-05 18:30:12 +0000
commit538565c4a516bd50ffcffbb855026ad914300b73 (patch)
treeafbc163f5f3767268b1fd7ccab0387eedffd6a2a /sys/dev/ed
parentb77e575e1dd3257e0ae72a69ee1897510f7a27ed (diff)
Notes
Diffstat (limited to 'sys/dev/ed')
-rw-r--r--sys/dev/ed/if_ed_pci.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/dev/ed/if_ed_pci.c b/sys/dev/ed/if_ed_pci.c
index 036879103c5ad..b4bef3e30ab36 100644
--- a/sys/dev/ed/if_ed_pci.c
+++ b/sys/dev/ed/if_ed_pci.c
@@ -69,11 +69,10 @@ ed_pci_probe(device_t dev)
while (ep->type && ep->type != type)
++ep;
- if (ep->desc) {
- device_set_desc(dev, ep->desc);
- return (0);
- }
- return (ENXIO);
+ if (ep->desc == NULL)
+ return (ENXIO);
+ device_set_desc(dev, ep->desc);
+ return (BUS_PROBE_DEFAULT);
}
static int