]> git.baikalelectronics.ru Git - uboot.git/commit
efi_loader: simplify tcg2_create_digest()
authorIlias Apalodimas <ilias.apalodimas@linaro.org>
Thu, 22 Apr 2021 11:32:14 +0000 (14:32 +0300)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 24 Apr 2021 04:53:40 +0000 (06:53 +0200)
commita462cf464f428338b15218aa7f857585ce640b4d
treebe0078e375702347f3589ace93b464de6b337f7a
parent2300e3d4a77266227a0a0837a414c2caad68e6e2
efi_loader: simplify tcg2_create_digest()

Bumping the digest list count, for all supported algorithms,  can be
calculated outside of the individual switch statements.  So let's do that
for every loop iteration instead and simplify the code a bit.

Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/efi_loader/efi_tcg2.c