]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
common/console.c: Drop sandbox special-case console code
authorStefan Roese <sr@denx.de>
Mon, 16 Nov 2015 14:26:31 +0000 (15:26 +0100)
committerTom Rini <trini@konsulko.com>
Mon, 23 Nov 2015 15:56:06 +0000 (10:56 -0500)
As done in commit da229e4e [sandbox: Drop special-case sandbox console code],
this patch drops the sandbox special-case code in vprintf() that was
missed by Simon at that time.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Acked-by: Simon Glass <sjg@chromium.org>
common/console.c

index b3f126cceba6633ef9e49598a81a3a1f54908d29..fff03c952cd44bf7beb18fe28ce72a21f2e27ba2 100644 (file)
@@ -582,11 +582,6 @@ int vprintf(const char *fmt, va_list args)
        uint i;
        char printbuffer[CONFIG_SYS_PBSIZE];
 
-#if defined(CONFIG_PRE_CONSOLE_BUFFER) && !defined(CONFIG_SANDBOX)
-       if (!gd->have_console)
-               return 0;
-#endif
-
        /* For this to work, printbuffer must be larger than
         * anything we ever want to print.
         */