On 5/25/20 9:02 PM, Daniel Kiper wrote:
> Drop unused grub_tpm*_execute() and declaration of nonexistent 
> grub_tpm_init().
> 
> Signed-off-by: Daniel Kiper <daniel.ki...@oracle.com>
> ---

[snip]

> -static grub_err_t
> -grub_tpm2_execute (grub_efi_handle_t tpm_handle,
> -                   PassThroughToTPM_InputParamBlock *inbuf,
> -                   PassThroughToTPM_OutputParamBlock *outbuf)
> -{
> -  grub_efi_status_t status;
> -  grub_efi_tpm2_protocol_t *tpm;
> -  grub_uint32_t inhdrsize = sizeof (*inbuf) - sizeof (inbuf->TPMOperandIn);
> -  grub_uint32_t outhdrsize =
> -    sizeof (*outbuf) - sizeof (outbuf->TPMOperandOut);
> -
> -  tpm = grub_efi_open_protocol (tpm_handle, &tpm2_guid,
> -                             GRUB_EFI_OPEN_PROTOCOL_GET_PROTOCOL);
> -
> -  if (!grub_tpm2_present (tpm))
> -    return 0;
> -
> -  /* UEFI TPM protocol takes the raw operand block, no param block header. */
> -  status = efi_call_5 (tpm->submit_command, tpm,
> -                    inbuf->IPBLength - inhdrsize, inbuf->TPMOperandIn,
> -                    outbuf->OPBLength - outhdrsize, outbuf->TPMOperandOut);
> -

I think this would be useful if we ever add support for sending TPM commands.
But I agree that should be removed since is unused and can always be brought
back from the git history if needed.

Reviewed-by: Javier Martinez Canillas <javi...@redhat.com>

Best regards,
-- 
Javier Martinez Canillas
Software Engineer - Desktop Hardware Enablement
Red Hat


_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to