Skip to contentSkip to conversation

efi_loader: don't increment part twice per loop

PATCH Applied Jonathan Gray 3 participants 3 messages Oct 10, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 efi_loader: don't increment part twice per loop

Correct a mistake in the part number handling of 16a73b249d138fedeb188710533902ed7aac1ddc and only increment part once per loop.

---
 lib/efi_loader/efi_disk.c | 1 -
 1 file changed, 1 deletion(-)
lib/efi_loader/efi_disk.c +0 -1
index 6b192701a8..e61dbc8058 100644
@@ -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: */
Signature · 1 line
2.14.2
#1 lore raw

PATCH 1/1 efi_loader: don't increment part twice per loop

Quoted 5 lines · Jonathan Gray

Correct a mistake in the part number handling of 16a73b249d138fedeb188710533902ed7aac1ddc and only increment part once per loop.

Tested on the Pine64

Quoted 23 lines
---
 lib/efi_loader/efi_disk.c | 1 -
 1 file changed, 1 deletion(-)
lib/efi_loader/efi_disk.c +0 -2
index 6b192701a8..e61dbc8058 100644
@@ -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: */
--

2.14.2

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
https://lists.denx.de/listinfo/u-boot