Browse Source

efi_loader: efi_dp_get_next_instance() superfluous statement

Remove a superfluous statement in efi_dp_get_next_instance().

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
Heinrich Schuchardt 3 years ago
parent
commit
d081f27fc2
1 changed files with 0 additions and 1 deletions
  1. 0 1
      lib/efi_loader/efi_device_path.c

+ 0 - 1
lib/efi_loader/efi_device_path.c

@@ -382,7 +382,6 @@ struct efi_device_path *efi_dp_get_next_instance(struct efi_device_path **dp,
382 382
 		*size = 0;
383 383
 	if (!dp || !*dp)
384 384
 		return NULL;
385
-	p = *dp;
386 385
 	sz = efi_dp_instance_size(*dp);
387 386
 	p = dp_alloc(sz + sizeof(END));
388 387
 	if (!p)