[PATCH 1/1] tpm: remove superfluous check in tpm_tis_send()
Simon Glass
sjg at chromium.org
Sun Nov 12 04:08:33 CET 2023
On Fri, 10 Nov 2023 at 17:35, Heinrich Schuchardt
<heinrich.schuchardt at canonical.com> wrote:
>
> Checking if variable chip is NULL after dereferencing it makes no sense.
> As discribed in [1] it is not expected that the variable can ever be NULL.
>
> [1] Re: [PATCH] tpm: avoid NULL pointer dereference in tpm_tis_send()
> https://lore.kernel.org/u-boot/YaFwDtKKYRr7qzWc@apalos.home/
>
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
> ---
> drivers/tpm/tpm2_tis_core.c | 3 ---
> 1 file changed, 3 deletions(-)
>
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list