summaryrefslogtreecommitdiff
path: root/cmd/load.c
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2021-01-11 13:55:03 -0500
committerTom Rini <[email protected]>2021-01-11 13:55:03 -0500
commitd71be1990218957b9f05dbf13a72859a2abe06d7 (patch)
tree99858dc9988f7f7b4c0ab1d8d45738e3abdf38c8 /cmd/load.c
parentc4fddedc48f336eabc4ce3f74940e6aa372de18c (diff)
parentbc0b99bd8b19599f670f42401de655fa9b44cd94 (diff)
Merge branch 'next'
Signed-off-by: Tom Rini <[email protected]>
Diffstat (limited to 'cmd/load.c')
-rw-r--r--cmd/load.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/cmd/load.c b/cmd/load.c
index 9a3a16979c7..c6a7cc46515 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 */