aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJonathan Gray2017-10-10 21:32:29 +1100
committerAlexander Graf2017-10-10 18:14:05 +0200
commitbcbc4a80462c42c5d5ccac0287b8a7d49df9e179 (patch)
tree697f2f0c30ae83795b5c38e390f63d8a5c0e4fd8 /lib
parent984f251feeb932cfe551cbd62c5f7f5e073b6cc3 (diff)
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 <jsg@jsg.id.au> Tested-by: Peter Robinson <pbrobinson@gmail.com> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/efi_loader/efi_disk.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/efi_loader/efi_disk.c b/lib/efi_loader/efi_disk.c
index 6b192701a8a..e61dbc80580 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: */