]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
efi_loader: efi_dp_get_next_instance() superfluous statement
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Thu, 27 Sep 2018 18:55:04 +0000 (20:55 +0200)
committerAlexander Graf <agraf@suse.de>
Tue, 16 Oct 2018 20:56:18 +0000 (22:56 +0200)
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>
lib/efi_loader/efi_device_path.c

index 5a61a1c1dcf95fa194ed08040b0221cf19eeadd5..46a24f788241cf835e5c074a7e058efe0ca963f7 100644 (file)
@@ -382,7 +382,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)