diff options
author | Jonathan Gray <jsg@jsg.id.au> | 2017-10-10 21:32:29 +1100 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2017-10-10 18:14:05 +0200 |
commit | bcbc4a80462c42c5d5ccac0287b8a7d49df9e179 (patch) | |
tree | 697f2f0c30ae83795b5c38e390f63d8a5c0e4fd8 /lib/efi_loader/efi_disk.c | |
parent | 984f251feeb932cfe551cbd62c5f7f5e073b6cc3 (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/efi_loader/efi_disk.c')
-rw-r--r-- | lib/efi_loader/efi_disk.c | 1 |
1 files changed, 0 insertions, 1 deletions
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: */ |