diff mbox

[U-Boot,7/8] net/tftp.c: cosmetic: fix indentation

Message ID 1305388203-22983-8-git-send-email-luca.ceresoli@comelit.it
State Accepted
Commit 0bdd8acc35c152a1d934a59306f63586b47453a8
Headers show

Commit Message

Luca Ceresoli May 14, 2011, 3:50 p.m. UTC
This removes the following checkpatch issue:
 - WARNING: suspect code indent for conditional statements

Signed-off-by: Luca Ceresoli <luca.ceresoli@comelit.it>
Cc: Wolfgang Denk <wd@denx.de>
---
 net/tftp.c |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

Comments

Wolfgang Denk May 19, 2011, 7:37 p.m. UTC | #1
Dear Luca Ceresoli,

In message <1305388203-22983-8-git-send-email-luca.ceresoli@comelit.it> you wrote:
> This removes the following checkpatch issue:
>  - WARNING: suspect code indent for conditional statements
> 
> Signed-off-by: Luca Ceresoli <luca.ceresoli@comelit.it>
> Cc: Wolfgang Denk <wd@denx.de>
> ---
>  net/tftp.c |   11 ++++++-----
>  1 files changed, 6 insertions(+), 5 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk
diff mbox

Patch

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');