summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2020-12-01 13:58:28 +0100
committerMichal Simek <michal.simek@xilinx.com>2021-01-04 10:51:26 +0100
commite7fcfef431af04f38819555ae407d540f5ba1c93 (patch)
treef5c37f735f1c16d5ad19a79a4f331ff6e743665c /cmd
parentd42ab39f58e828c99a0cba6890e29986e87d11f5 (diff)
downloadu-boot-e7fcfef431af04f38819555ae407d540f5ba1c93.tar.gz
u-boot-e7fcfef431af04f38819555ae407d540f5ba1c93.tar.xz
u-boot-e7fcfef431af04f38819555ae407d540f5ba1c93.zip
cmd: load: Fix code indentation
Reported by smatch like: cmd/load.c:228 read_record() warn: inconsistent indenting Signed-off-by: Michal Simek <michal.simek@xilinx.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/load.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/cmd/load.c b/cmd/load.c
index 9a3a16979c..c6a7cc4651 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 */