PERFORCE change 173043 for review
Rafal Jaworowski
raj at FreeBSD.org
Tue Jan 12 22:02:49 UTC 2010
http://p4web.freebsd.org/chv.cgi?CH=173043
Change 173043 by raj at raj_fdt on 2010/01/12 22:02:04
Move to a more natural logic flow in simplebus_probe().
Affected files ...
.. //depot/projects/fdt/sys/dev/fdt/simplebus.c#3 edit
Differences ...
==== //depot/projects/fdt/sys/dev/fdt/simplebus.c#3 (text+ko) ====
@@ -141,12 +141,11 @@
simplebus_probe(device_t dev)
{
- if (ofw_bus_is_compatible(dev, "simple-bus")) {
- device_set_desc(dev, "Flattened device tree simple bus");
- return (BUS_PROBE_DEFAULT);
- }
+ if (!ofw_bus_is_compatible(dev, "simple-bus"))
+ return (ENXIO);
- return (ENXIO);
+ device_set_desc(dev, "Flattened device tree simple bus");
+ return (BUS_PROBE_DEFAULT);
}
static void
More information about the p4-projects
mailing list