[U-Boot] [PATCH 1/1] efi_loader: efi_dp_get_next_instance() superfluous statemt

Heinrich Schuchardt xypron.glpk at gmx.de
Mon Aug 6 20:36:58 UTC 2018


Remove a superfluous statement in efi_dp_get_next_instance().

p is reassigned a value before the old one is used.

Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
---
 lib/efi_loader/efi_device_path.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/lib/efi_loader/efi_device_path.c b/lib/efi_loader/efi_device_path.c
index 6040bcff19..172317b9a0 100644
--- a/lib/efi_loader/efi_device_path.c
+++ b/lib/efi_loader/efi_device_path.c
@@ -387,7 +387,6 @@ struct efi_device_path *efi_dp_get_next_instance(struct efi_device_path **dp,
 		*size = 0;
 	if (!dp || !*dp)
 		return NULL;
-	p = *dp;
 	sz = efi_dp_instance_size(*dp);
 	p = dp_alloc(sz + sizeof(END));
 	if (!p)
-- 
2.18.0



More information about the U-Boot mailing list