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 f7590e4..c118335 100644 (file)
@@ -212,8 +212,6 @@ static int create_auth_data(struct auth_context *ctx)
        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)
                return -1;
        key.size = file_size;