mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-06-06 23:01:36 +00:00
net/tftp.c: cosmetic: fix whitespace issues
This removes the following checkpatch issues: - ERROR: space prohibited before that close parenthesis ')' - ERROR: space required after that ';' (ctx:BxV) - ERROR: space required after that ',' (ctx:VxV) - ERROR: space required after that ';' (ctx:VxV) - ERROR: spaces required around that '<<=' (ctx:VxV) - ERROR: spaces required around that '<' (ctx:VxV) - ERROR: spaces required around that '=' (ctx:VxV) - ERROR: spaces required around that '+=' (ctx:VxV) - ERROR: spaces required around that '=' (ctx:VxW) - WARNING: please, no spaces at the start of a line - WARNING: space prohibited between function name and open parenthesis '(' Signed-off-by: Luca Ceresoli <luca.ceresoli@comelit.it> Cc: Wolfgang Denk <wd@denx.de>
This commit is contained in:
parent
2f09413fd9
commit
c718b1439b
1 changed files with 97 additions and 95 deletions
|
@ -251,7 +251,8 @@ TftpSend (void)
|
||||||
#ifdef CONFIG_MCAST_TFTP
|
#ifdef CONFIG_MCAST_TFTP
|
||||||
/* My turn! Start at where I need blocks I missed.*/
|
/* My turn! Start at where I need blocks I missed.*/
|
||||||
if (Multicast)
|
if (Multicast)
|
||||||
TftpBlock=ext2_find_next_zero_bit(Bitmap,(Mapsize*8),0);
|
TftpBlock = ext2_find_next_zero_bit(Bitmap,
|
||||||
|
(Mapsize*8), 0);
|
||||||
/*..falling..*/
|
/*..falling..*/
|
||||||
#endif
|
#endif
|
||||||
case STATE_DATA:
|
case STATE_DATA:
|
||||||
|
@ -341,7 +342,8 @@ TftpHandler(uchar *pkt, unsigned dest, IPaddr_t sip, unsigned src,
|
||||||
for (i = 0; i+8 < len; i++) {
|
for (i = 0; i+8 < len; i++) {
|
||||||
if (strcmp((char*)pkt+i, "blksize") == 0) {
|
if (strcmp((char*)pkt+i, "blksize") == 0) {
|
||||||
TftpBlkSize = (unsigned short)
|
TftpBlkSize = (unsigned short)
|
||||||
simple_strtoul((char*)pkt+i+8,NULL,10);
|
simple_strtoul((char*)pkt+i+8, NULL,
|
||||||
|
10);
|
||||||
debug("Blocksize ack: %s, %d\n",
|
debug("Blocksize ack: %s, %d\n",
|
||||||
(char*)pkt+i+8, TftpBlkSize);
|
(char*)pkt+i+8, TftpBlkSize);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue