]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
efi_loader: don't increment part twice per loop
authorJonathan Gray <jsg@jsg.id.au>
Tue, 10 Oct 2017 10:32:29 +0000 (21:32 +1100)
committerAlexander Graf <agraf@suse.de>
Tue, 10 Oct 2017 16:14:05 +0000 (18:14 +0200)
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>
lib/efi_loader/efi_disk.c

index 6b192701a8a2a460326369cf7d95c3a34d246261..e61dbc80580b61ae6e0351be68d77fd8eeca0eeb 100644 (file)
@@ -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: */