]> git.proxmox.com Git - grub2.git/commit - grub-core/commands/efi/tpm.c
efi/tpm: Extract duplicate code into independent functions
authorTianjia Zhang <tianjia.zhang@linux.alibaba.com>
Thu, 29 Oct 2020 13:49:49 +0000 (21:49 +0800)
committerDaniel Kiper <daniel.kiper@oracle.com>
Sat, 12 Dec 2020 00:19:03 +0000 (01:19 +0100)
commitba4b3a7b1e362f31c7796397911d192a77ae5e1e
tree61e5932bbda7c0e61e9070325150991d7ae65ccd
parent3ccbaf36d4a13183d1c33e01f77168cb816572c2
efi/tpm: Extract duplicate code into independent functions

Part of the code logic for processing the return value of efi
log_extend_event is repetitive and complicated. Extract the
repetitive code into an independent function.

Signed-off-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/commands/efi/tpm.c