don't initialize "in" as it is initialized again one line below.
authorStefan Reinauer <stepan@coresystems.de>
Wed, 29 Apr 2009 19:09:19 +0000 (19:09 +0000)
committerStefan Reinauer <stepan@openbios.org>
Wed, 29 Apr 2009 19:09:19 +0000 (19:09 +0000)
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Patrick Georgi <patrick.georgi@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4229 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

payloads/libpayload/libc/console.c

index ea0eba0164ff34efd55090ea644c091804ec7ac8..5368dd698bd928e454b12abab9fc9394c32f7bb3 100644 (file)
@@ -110,7 +110,7 @@ int getchar(void)
 #ifdef CONFIG_USB
                usb_poll();
 #endif
-               struct console_input_driver *in = console_in;
+               struct console_input_driver *in;
                for (in = console_in; in != 0; in = in->next)
                        if (in->havechar())
                                return in->getchar();