Style change.

Suggested by:	jhb @ and marius @
MFC after:	1 week
This commit is contained in:
Hans Petter Selasky 2011-11-22 21:53:19 +00:00
parent 6edf5accb6
commit 5b288d2abf

View File

@ -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)));