diff options
-rw-r--r-- | sys/kern/subr_bus.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/subr_bus.c b/sys/kern/subr_bus.c index c337c78..605f772 100644 --- a/sys/kern/subr_bus.c +++ b/sys/kern/subr_bus.c @@ -1862,7 +1862,7 @@ device_delete_child(device_t dev, device_t child) PDEBUG(("%s from %s", DEVICENAME(child), DEVICENAME(dev))); /* remove children first */ - while ( (grandchild = TAILQ_FIRST(&child->children)) ) { + while ((grandchild = TAILQ_FIRST(&child->children)) != NULL) { error = device_delete_child(child, grandchild); if (error) return (error); @@ -1903,7 +1903,7 @@ device_delete_all_children(device_t dev) error = 0; - while ( (child = TAILQ_FIRST(&dev->children)) ) { + while ((child = TAILQ_FIRST(&dev->children)) != NULL) { error = device_delete_child(dev, child); if (error) { PDEBUG(("Failed deleting %s", DEVICENAME(child))); |