From patchwork Sat May 14 15:50:02 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Ceresoli X-Patchwork-Id: 95561 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 A7E391007D1 for ; Sun, 15 May 2011 02:01:22 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id CB78228093; Sat, 14 May 2011 18:01:20 +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 AyUp0Yi6nR1T; Sat, 14 May 2011 18:01:20 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id CDBD828088; Sat, 14 May 2011 18:01:18 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 30BF128098 for ; Sat, 14 May 2011 18:01:16 +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 x71soWYQzBlV for ; Sat, 14 May 2011 18:01:14 +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 smtpi4.ngi.it (smtpi4.ngi.it [88.149.128.104]) by theia.denx.de (Postfix) with ESMTP id 0AC212808B for ; Sat, 14 May 2011 18:01:12 +0200 (CEST) Received: from wallace (88-149-225-30.dynamic.ngi.it [88.149.225.30]) by smtpi4.ngi.it (Postfix) with ESMTP id 41E544298E; Sat, 14 May 2011 17:51:12 +0200 (CEST) From: Luca Ceresoli To: u-boot@lists.denx.de Date: Sat, 14 May 2011 17:50:02 +0200 Message-Id: <1305388203-22983-8-git-send-email-luca.ceresoli@comelit.it> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1305388203-22983-1-git-send-email-luca.ceresoli@comelit.it> References: <1305388203-22983-1-git-send-email-luca.ceresoli@comelit.it> Cc: Luca Ceresoli Subject: [U-Boot] [PATCH 7/8] net/tftp.c: cosmetic: fix indentation 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 This removes the following checkpatch issue: - WARNING: suspect code indent for conditional statements Signed-off-by: Luca Ceresoli Cc: Wolfgang Denk --- net/tftp.c | 11 ++++++----- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/net/tftp.c b/net/tftp.c index f83c0d6..a52f54c 100644 --- a/net/tftp.c +++ b/net/tftp.c @@ -307,7 +307,7 @@ TftpHandler(uchar *pkt, unsigned dest, IPaddr_t sip, unsigned src, if (Multicast && (!Mcast_port || (dest != Mcast_port))) #endif - return; + return; } if (TftpState != STATE_RRQ && src != TftpServerPort) return; @@ -603,11 +603,12 @@ TftpStart(void) /* Check if we need to send across this subnet */ if (NetOurGatewayIP && NetOurSubnetMask) { - IPaddr_t OurNet = NetOurIP & NetOurSubnetMask; - IPaddr_t ServerNet = TftpServerIP & NetOurSubnetMask; + IPaddr_t OurNet = NetOurIP & NetOurSubnetMask; + IPaddr_t ServerNet = TftpServerIP & NetOurSubnetMask; - if (OurNet != ServerNet) - printf("; sending through gateway %pI4", &NetOurGatewayIP); + if (OurNet != ServerNet) + printf("; sending through gateway %pI4", + &NetOurGatewayIP); } putc('\n');