From patchwork Mon Nov 7 11:14:00 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Igor Grinberg X-Patchwork-Id: 124052 X-Patchwork-Delegate: sbabic@denx.de 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 72ACC1007D3 for ; Mon, 7 Nov 2011 22:15:30 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 90B8128CA0; Mon, 7 Nov 2011 12:15:28 +0100 (CET) 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 ucZMyNsjKcr8; Mon, 7 Nov 2011 12:15:28 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 3E57128BA7; Mon, 7 Nov 2011 12:14:45 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5A89028AD4 for ; Mon, 7 Nov 2011 12:14:39 +0100 (CET) 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 ekSaNSqsmLhJ for ; Mon, 7 Nov 2011 12:14:39 +0100 (CET) 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 softlayer.compulab.co.il (50.23.254.54-static.reverse.softlayer.com [50.23.254.54]) by theia.denx.de (Postfix) with ESMTPS id AA16828AA2 for ; Mon, 7 Nov 2011 12:14:29 +0100 (CET) Received: from [62.90.235.247] (port=43915 helo=zimbra-mta.compulab.co.il) by softlayer.compulab.co.il with esmtp (Exim 4.69) (envelope-from ) id 1RNN9n-00086g-Ui; Mon, 07 Nov 2011 13:14:28 +0200 Received: from localhost (localhost.localdomain [127.0.0.1]) by zimbra-mta.compulab.co.il (Postfix) with ESMTP id 32E3A7E9A9F; Mon, 7 Nov 2011 13:14:27 +0200 (IST) X-Virus-Scanned: amavisd-new at compulab.co.il Received: from zimbra-mta.compulab.co.il ([127.0.0.1]) by localhost (zimbra-mta.compulab.co.il [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mCDBiT2nc26i; Mon, 7 Nov 2011 13:14:26 +0200 (IST) Received: from grinberg-linux (grinberg-pc.compulab.local [10.1.1.13]) by zimbra-mta.compulab.co.il (Postfix) with SMTP id CBB947E9A99; Mon, 7 Nov 2011 13:14:25 +0200 (IST) Received: by grinberg-linux (sSMTP sendmail emulation); Mon, 07 Nov 2011 13:14:22 +0200 From: Igor Grinberg To: Wolfgang Denk Date: Mon, 7 Nov 2011 13:14:00 +0200 Message-Id: <1320664451-2678-7-git-send-email-grinberg@compulab.co.il> X-Mailer: git-send-email 1.7.3.4 In-Reply-To: <1320664451-2678-1-git-send-email-grinberg@compulab.co.il> References: <1320664451-2678-1-git-send-email-grinberg@compulab.co.il> X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - softlayer.compulab.co.il X-AntiAbuse: Original Domain - lists.denx.de X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - compulab.co.il Cc: u-boot@lists.denx.de Subject: [U-Boot] [PATCH 06/17] env: clean env_nowhere.c checkpatch and code style X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 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 Cleanup the env_nowhere.c checkpatch warnings, errors and coding style. Signed-off-by: Igor Grinberg --- common/env_nowhere.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/common/env_nowhere.c b/common/env_nowhere.c index a6890db..8a3ca19 100644 --- a/common/env_nowhere.c +++ b/common/env_nowhere.c @@ -31,7 +31,7 @@ DECLARE_GLOBAL_DATA_PTR; -env_t *env_ptr = NULL; +env_t *env_ptr; void env_relocate_spec(void) { @@ -39,7 +39,7 @@ void env_relocate_spec(void) uchar env_get_char_spec(int index) { - return ( *((uchar *)(gd->env_addr + index)) ); + return *((uchar *)(gd->env_addr + index)); } /* @@ -49,8 +49,8 @@ uchar env_get_char_spec(int index) */ int env_init(void) { - gd->env_addr = (ulong)&default_environment[0]; - gd->env_valid = 0; + gd->env_addr = (ulong)&default_environment[0]; + gd->env_valid = 0; - return (0); + return 0; }