Message ID | 1076c6d5bca1e026042c4c77ffaf82f2d0d6a8d6.1606828461.git.michal.simek@xilinx.com |
---|---|
State | Superseded |
Delegated to: | Tom Rini |
Headers | show |
Series | [1/2] cmd: load: Fix code indentation | expand |
diff --git a/cmd/load.c b/cmd/load.c index 9a3a16979c71..9af0414c9c48 100644 --- a/cmd/load.c +++ b/cmd/load.c @@ -228,13 +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 */ *p = '\0';
Reported by smatch like: cmd/load.c:228 read_record() warn: inconsistent indenting Signed-off-by: Michal Simek <michal.simek@xilinx.com> --- cmd/load.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-)