diff options
author | AKASHI Takahiro | 2022-02-16 10:49:51 +0900 |
---|---|---|
committer | Heinrich Schuchardt | 2022-02-26 07:37:00 +0100 |
commit | 625d933eddc9aa3137ab6cc31f54a2f3404d937a (patch) | |
tree | e7df00fca7154c4a8c4c69ed47ca0b781bf6c336 /tools/mkeficapsule.c | |
parent | 57b98efa16cd660ef3a964979dbb15fd5b21a0b6 (diff) |
tools: mkeficapsule: remove duplicated code
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>
Diffstat (limited to 'tools/mkeficapsule.c')
-rw-r--r-- | tools/mkeficapsule.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/tools/mkeficapsule.c b/tools/mkeficapsule.c index f7590e482f1..c118335b93b 100644 --- a/tools/mkeficapsule.c +++ b/tools/mkeficapsule.c @@ -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; |