mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-22 07:01:39 +00:00
net/tftp.c: cosmetic: fix indentation
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>
This commit is contained in:
parent
6d2231e8fa
commit
0bdd8acc35
1 changed files with 6 additions and 5 deletions
11
net/tftp.c
11
net/tftp.c
|
@ -307,7 +307,7 @@ TftpHandler(uchar *pkt, unsigned dest, IPaddr_t sip, unsigned src,
|
||||||
if (Multicast
|
if (Multicast
|
||||||
&& (!Mcast_port || (dest != Mcast_port)))
|
&& (!Mcast_port || (dest != Mcast_port)))
|
||||||
#endif
|
#endif
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (TftpState != STATE_RRQ && src != TftpServerPort)
|
if (TftpState != STATE_RRQ && src != TftpServerPort)
|
||||||
return;
|
return;
|
||||||
|
@ -603,11 +603,12 @@ TftpStart(void)
|
||||||
|
|
||||||
/* Check if we need to send across this subnet */
|
/* Check if we need to send across this subnet */
|
||||||
if (NetOurGatewayIP && NetOurSubnetMask) {
|
if (NetOurGatewayIP && NetOurSubnetMask) {
|
||||||
IPaddr_t OurNet = NetOurIP & NetOurSubnetMask;
|
IPaddr_t OurNet = NetOurIP & NetOurSubnetMask;
|
||||||
IPaddr_t ServerNet = TftpServerIP & NetOurSubnetMask;
|
IPaddr_t ServerNet = TftpServerIP & NetOurSubnetMask;
|
||||||
|
|
||||||
if (OurNet != ServerNet)
|
if (OurNet != ServerNet)
|
||||||
printf("; sending through gateway %pI4", &NetOurGatewayIP);
|
printf("; sending through gateway %pI4",
|
||||||
|
&NetOurGatewayIP);
|
||||||
}
|
}
|
||||||
putc('\n');
|
putc('\n');
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue