Fix misplacement of code. Due to additional DF code everything got
authorJeroen Ruigrok/asmodai <asmodai@dragonflybsd.org>
Mon, 17 Nov 2003 21:24:15 +0000 (21:24 +0000)
committerJeroen Ruigrok/asmodai <asmodai@dragonflybsd.org>
Mon, 17 Nov 2003 21:24:15 +0000 (21:24 +0000)
shifted one position, including the main condition, which was wrong.

sys/kern/subr_bus.c

index 466592f..cdd6e92 100644 (file)
@@ -24,7 +24,7 @@
  * SUCH DAMAGE.
  *
  * $FreeBSD: src/sys/kern/subr_bus.c,v 1.54.2.9 2002/10/10 15:13:32 jhb Exp $
- * $DragonFly: src/sys/kern/subr_bus.c,v 1.5 2003/11/17 00:54:40 asmodai Exp $
+ * $DragonFly: src/sys/kern/subr_bus.c,v 1.6 2003/11/17 21:24:15 asmodai Exp $
  */
 
 #include "opt_bus.h"
@@ -1003,9 +1003,9 @@ device_set_driver(device_t dev, driver_t *driver)
                return ENOMEM;
            }
            bzero(dev->softc, driver->size);
-       } else
-           kobj_init((kobj_t) dev, &null_class);
-    }
+       }
+    } else
+       kobj_init((kobj_t) dev, &null_class);
     return 0;
 }