Skip to content
Snippets Groups Projects
Commit 0bdd8acc authored by Luca Ceresoli's avatar Luca Ceresoli Committed by Wolfgang Denk
Browse files

net/tftp.c: cosmetic: fix indentation


This removes the following checkpatch issue:
 - WARNING: suspect code indent for conditional statements

Signed-off-by: default avatarLuca Ceresoli <luca.ceresoli@comelit.it>
Cc: Wolfgang Denk <wd@denx.de>
parent 6d2231e8
No related branches found
No related tags found
No related merge requests found
......@@ -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');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment