]> git.sur5r.net Git - u-boot/commitdiff
net/tftp.c: cosmetic: fix indentation
authorLuca Ceresoli <luca.ceresoli@comelit.it>
Sat, 14 May 2011 05:50:02 +0000 (05:50 +0000)
committerWolfgang Denk <wd@denx.de>
Thu, 19 May 2011 19:36:15 +0000 (21:36 +0200)
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

index f83c0d6f8c1b36c88c5be17554c2e9ade3056328..a52f54c3d20e3f6f42dafb3c69176aba88717292 100644 (file)
@@ -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');