st 2. 12. 2020 v 8:45 odesílatel Michal Simek <[email protected]> napsal:
>
> Reported by smatch like:
> cmd/load.c:228 read_record() warn: inconsistent indenting
>
> Signed-off-by: Michal Simek <[email protected]>
> ---
>
> 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
>

Applied.
M

-- 
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Xilinx Microblaze
Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs
U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP/Versal SoCs

Reply via email to