From b35c5f9481170223453807c82ed110f7ad58fb29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Mon, 1 Jan 2007 18:09:20 +0000 Subject: [PATCH] No longer deny starting in safe mode - the Bootscript is supposed to do that already. This way, we can still bring up the net in safe mode manually. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19667 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- .../drivers/network/stack/kernel_stack.cpp | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src/add-ons/kernel/drivers/network/stack/kernel_stack.cpp b/src/add-ons/kernel/drivers/network/stack/kernel_stack.cpp index 823dedddb0..2d75b43584 100644 --- a/src/add-ons/kernel/drivers/network/stack/kernel_stack.cpp +++ b/src/add-ons/kernel/drivers/network/stack/kernel_stack.cpp @@ -25,7 +25,6 @@ // debugging macros #define LOGID "net_stack_driver: " #define ERROR(format, args...) dprintf(LOGID "ERROR: " format, ## args) -#define WARN(format, args...) dprintf(LOGID "WARNING: " format, ## args) #ifdef DEBUG # define TRACE(format, args...) dprintf(format, ## args) @@ -589,27 +588,9 @@ net_stack_deselect(void *_cookie, uint8 event, selectsync *sync) // #pragma mark - driver -/** Do we init ourselves? If we're in safe mode we'll decline so if things - * screw up we can boot and delete the broken driver! - * After my experiences earlier - a good idea! - */ - status_t init_hardware(void) { - void *settings = load_driver_settings(B_SAFEMODE_DRIVER_SETTINGS); - if (settings != NULL) { - // we got a pointer, now get settings... - bool safemode = get_driver_boolean_parameter(settings, B_SAFEMODE_SAFE_MODE, false, false); - // now get rid of settings - unload_driver_settings(settings); - - if (safemode) { - WARN("net_stack: Safemode! Declining offer to join the party.\n"); - return B_ERROR; - } - } - return B_OK; }