This removes the following checkpatch issues:
- WARNING: braces {} are not necessary for single statement blocks
- WARNING: braces {} are not necessary for any arm of this statement
Signed-off-by: Luca Ceresoli <luca.ceresoli@comelit.it>
Cc: Wolfgang Denk <wd@denx.de>
- if (TftpState != STATE_RRQ && src != TftpServerPort) {
+ if (TftpState != STATE_RRQ && src != TftpServerPort)
len -= 2;
/* warning: don't use increment (++) in ntohs() macros!! */
s = (ushort *)pkt;
len -= 2;
/* warning: don't use increment (++) in ntohs() macros!! */
s = (ushort *)pkt;
- if (((TftpBlock - 1) % 10) == 0) {
+ if (((TftpBlock - 1) % 10) == 0)
- } else if ((TftpBlock % (10 * HASHES_PER_LINE)) == 0) {
+ else if ((TftpBlock % (10 * HASHES_PER_LINE)) == 0)
}
if (TftpState == STATE_RRQ)
}
if (TftpState == STATE_RRQ)
#ifdef CONFIG_TFTP_PORT
ep = getenv("tftpdstp");
#ifdef CONFIG_TFTP_PORT
ep = getenv("tftpdstp");
TftpServerPort = simple_strtol(ep, NULL, 10);
TftpServerPort = simple_strtol(ep, NULL, 10);
TftpOurPort = simple_strtol(ep, NULL, 10);
TftpOurPort = simple_strtol(ep, NULL, 10);