From 410c1c159fb360b53beaab23cef23799a9f5ac9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Tue, 28 Sep 2004 03:42:07 +0000 Subject: [PATCH] Calmed down the soon to be removed driver loader (to be replaced by a better version in devfs directly). git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9086 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/drivers/dev.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/kernel/drivers/dev.c b/src/kernel/drivers/dev.c index 74beeef0d5..15243ac664 100755 --- a/src/kernel/drivers/dev.c +++ b/src/kernel/drivers/dev.c @@ -150,12 +150,9 @@ dev_load_dev_module(const char *name, const char *dirpath) devfs_paths = publish_devices(); for (; *devfs_paths; devfs_paths++) { device_hooks *hooks = find_device(*devfs_paths); - if (hooks) { - dprintf("DEV: %s: publishing %s with hooks %p\n", - name, *devfs_paths, hooks); - if (devfs_publish_device(*devfs_paths, NULL, hooks) == 0) - keep_loaded = true; - } + + if (hooks && devfs_publish_device(*devfs_paths, NULL, hooks) == 0) + keep_loaded = true; } /* If we've managed to publish at least one of the device entry