From patchwork Fri Aug 31 22:44:10 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 181083 X-Patchwork-Delegate: marek.vasut@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 8C55A2C027A for ; Sat, 1 Sep 2012 08:45:01 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id DF91A280A2; Sat, 1 Sep 2012 00:44:53 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Q5RD5pRPtod6; Sat, 1 Sep 2012 00:44:53 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id CE52428090; Sat, 1 Sep 2012 00:44:38 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 1DBC32807B for ; Sat, 1 Sep 2012 00:44:34 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AYBhemYjfZHO for ; Sat, 1 Sep 2012 00:44:33 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.10]) by theia.denx.de (Postfix) with ESMTPS id 841BC2807F for ; Sat, 1 Sep 2012 00:44:30 +0200 (CEST) Received: from frontend1.mail.m-online.net (frontend1.mail.intern.m-online.net [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 3X7wcG0R5bz3hhcK; Sat, 1 Sep 2012 00:44:30 +0200 (CEST) X-Auth-Info: rEj30N39vSKElwdBzidbnkWPxCH8OLwniR6beXktW6U= Received: from mashiro.lan (unknown [195.140.253.167]) by smtp-auth.mnet-online.de (Postfix) with ESMTPA id 3X7wcF6Rt0zbbgc; Sat, 1 Sep 2012 00:44:29 +0200 (CEST) From: Marek Vasut To: u-boot@lists.denx.de Date: Sat, 1 Sep 2012 00:44:10 +0200 Message-Id: <1346453055-30888-2-git-send-email-marex@denx.de> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1346453055-30888-1-git-send-email-marex@denx.de> References: <1346453055-30888-1-git-send-email-marex@denx.de> Cc: Marek Vasut Subject: [U-Boot] [PATCH 1/6] stdio: dm: Remove dead code in console.c X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Signed-off-by: Marek Vasut Cc: Wolfgang Denk --- common/console.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/common/console.c b/common/console.c index 1177f7d..df03cef 100644 --- a/common/console.c +++ b/common/console.c @@ -694,11 +694,6 @@ done: } #endif /* CONFIG_SYS_CONSOLE_ENV_OVERWRITE */ -#if 0 - /* If nothing usable installed, use only the initial console */ - if ((stdio_devices[stdin] == NULL) && (stdio_devices[stdout] == NULL)) - return 0; -#endif return 0; } @@ -767,12 +762,6 @@ int console_init_r(void) setenv(stdio_names[i], stdio_devices[i]->name); } -#if 0 - /* If nothing usable installed, use only the initial console */ - if ((stdio_devices[stdin] == NULL) && (stdio_devices[stdout] == NULL)) - return 0; -#endif - return 0; }