efi: stmm: Drop unneeded null pointer check
authorJan Kiszka <jan.kiszka@siemens.com>
Mon, 25 Aug 2025 16:07:13 +0000 (18:07 +0200)
committerArd Biesheuvel <ardb@kernel.org>
Tue, 26 Aug 2025 12:49:42 +0000 (14:49 +0200)
commit134ed1093907a79e5d98087513f13fd7652c4df9
tree61eacab6d7a70a2c1c85927d9f74fa67437f10dc
parent01a3044af5d910e1f8b0bee53b2e0eccee8f9a5c
efi: stmm: Drop unneeded null pointer check

The API documenation of setup_mm_hdr does not mention that dptr can be
NULL, this is a local function, and no caller passes NULL. So drop the
unneeded check.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Acked-by: Sumit Garg <sumit.garg@oss.qualcomm.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/firmware/efi/stmm/tee_stmm_efi.c