]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
tools: mkeficapsule: remove duplicated code
authorAKASHI Takahiro <takahiro.akashi@linaro.org>
Wed, 16 Feb 2022 01:49:51 +0000 (10:49 +0900)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 26 Feb 2022 06:37:00 +0000 (07:37 +0100)
That code is mistakenly duplicated due to copy-and-paste error.
Just remove it.

Fixes: CID 348360
Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
tools/mkeficapsule.c

index f7590e482f10aa09b9279286b8bc0dffd845ea21..c118335b93bdfa4dd5802e49e8d9a90e7ba7bcf3 100644 (file)
@@ -210,8 +210,6 @@ static int create_auth_data(struct auth_context *ctx)
        cert.size = file_size;
 
        ret = read_bin_file(ctx->key_file, &key.data, &file_size);
-       if (ret < 0)
-               return -1;
        if (ret < 0)
                return -1;
        if (file_size > UINT_MAX)