From bcbc4a80462c42c5d5ccac0287b8a7d49df9e179 Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Tue, 10 Oct 2017 21:32:29 +1100 Subject: [PATCH] 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 --- 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.39.5