[U-Boot] [PATCH] efi_loader: don't increment part twice per loop

Peter Robinson pbrobinson at gmail.com
Tue Oct 10 12:37:47 UTC 2017


On Tue, Oct 10, 2017 at 11:32 AM, Jonathan Gray <jsg at jsg.id.au> wrote:
> Correct a mistake in the part number handling of
> 16a73b249d138fedeb188710533902ed7aac1ddc and only increment part once
> per loop.
>
> Signed-off-by: Jonathan Gray <jsg at jsg.id.au>
Tested-by: Peter Robinson <pbrobinson at gmail.com>

Tested on the Pine64

> ---
>  lib/efi_loader/efi_disk.c | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/lib/efi_loader/efi_disk.c b/lib/efi_loader/efi_disk.c
> index 6b192701a8..e61dbc8058 100644
> --- a/lib/efi_loader/efi_disk.c
> +++ b/lib/efi_loader/efi_disk.c
> @@ -360,7 +360,6 @@ int efi_disk_register(void)
>                                         continue;
>                                 efi_disk_add_dev(devname, if_typename, desc,
>                                                  i, 0, part);
> -                               part++;
>                         }
>
>                         /* ... and add block device: */
> --
> 2.14.2
>
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> https://lists.denx.de/listinfo/u-boot


More information about the U-Boot mailing list