From 02ec644ad8046b499600224022bdb665c734bcdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Tue, 7 Oct 2003 22:45:38 +0000 Subject: [PATCH] Removed declaration and initialization of gChosen; it's not done in openfirmware.c. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4964 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/boot/platform/openfirmware/console.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/kernel/boot/platform/openfirmware/console.cpp b/src/kernel/boot/platform/openfirmware/console.cpp index 5aeee58e8d..f1705974a0 100644 --- a/src/kernel/boot/platform/openfirmware/console.cpp +++ b/src/kernel/boot/platform/openfirmware/console.cpp @@ -22,7 +22,6 @@ class ConsoleHandle : public Handle { static ConsoleHandle sInput, sOutput; FILE *stdin, *stdout, *stderr; -int gChosen; ConsoleHandle::ConsoleHandle() @@ -53,10 +52,6 @@ ConsoleHandle::WriteAt(void *cookie, off_t pos, const void *buffer, size_t buffe status_t console_init(void) { - gChosen = of_finddevice("/chosen"); - if (gChosen == OF_FAILED) - return B_ERROR; - int input, output; if (of_getprop(gChosen, "stdin", &input, sizeof(int)) == OF_FAILED) return B_ERROR;