[PATCH v3 1/2] cmd: load: Fix code indentation
Michal Simek
michal.simek at xilinx.com
Wed Dec 2 08:45:43 CET 2020
Reported by smatch like:
cmd/load.c:228 read_record() warn: inconsistent indenting
Signed-off-by: Michal Simek <michal.simek at xilinx.com>
---
Changes in v3:
- Remove additional dt changes
Changes in v2:
- One } was missing. Get it back.
cmd/load.c | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/cmd/load.c b/cmd/load.c
index 9a3a16979c71..c6a7cc465153 100644
--- a/cmd/load.c
+++ b/cmd/load.c
@@ -228,12 +228,11 @@ static int read_record(char *buf, ulong len)
*p = c;
}
- /* Check for the console hangup (if any different from serial) */
- if (gd->jt->getc != getchar) {
- if (ctrlc()) {
- return (-1);
+ /* Check for the console hangup (if any different from serial) */
+ if (gd->jt->getc != getchar) {
+ if (ctrlc())
+ return (-1);
}
- }
}
/* line too long - truncate */
--
2.29.2
More information about the U-Boot
mailing list