efi_loader: don't increment part twice per loop
Correct a mistake in the part number handling of commit
16a73b249d
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>
This commit is contained in:
parent
984f251fee
commit
bcbc4a8046
@ -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: */
|
||||
|
Loading…
Reference in New Issue
Block a user