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)
commitbcbc4a80462c42c5d5ccac0287b8a7d49df9e179
tree697f2f0c30ae83795b5c38e390f63d8a5c0e4fd8
parent984f251feeb932cfe551cbd62c5f7f5e073b6cc3
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>
lib/efi_loader/efi_disk.c