From: Jonathan Gray Date: Tue, 10 Oct 2017 10:32:29 +0000 (+1100) Subject: efi_loader: don't increment part twice per loop X-Git-Tag: v2017.11-rc2~55^2~3 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=bcbc4a80462c42c5d5ccac0287b8a7d49df9e179;p=u-boot efi_loader: don't increment part twice per loop Correct a mistake in the part number handling of commit 16a73b249d138fedeb188710533902ed7aac1ddc and only increment part once per loop. Signed-off-by: Jonathan Gray Tested-by: Peter Robinson Signed-off-by: Alexander Graf --- 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: */