diff options
author | AKASHI Takahiro <takahiro.akashi@linaro.org> | 2022-02-16 10:49:51 +0900 |
---|---|---|
committer | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2022-02-26 07:37:00 +0100 |
commit | 625d933eddc9aa3137ab6cc31f54a2f3404d937a (patch) | |
tree | e7df00fca7154c4a8c4c69ed47ca0b781bf6c336 | |
parent | 57b98efa16cd660ef3a964979dbb15fd5b21a0b6 (diff) | |
download | u-boot-625d933eddc9aa3137ab6cc31f54a2f3404d937a.tar.gz |
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>
-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 f7590e482f..c118335b93 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; |