Commit 134ed109 authored by Jan Kiszka's avatar Jan Kiszka Committed by Ard Biesheuvel
Browse files

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: default avatarJan Kiszka <jan.kiszka@siemens.com>
Reviewed-by: default avatarIlias Apalodimas <ilias.apalodimas@linaro.org>
Acked-by: default avatarSumit Garg <sumit.garg@oss.qualcomm.com>
Signed-off-by: default avatarArd Biesheuvel <ardb@kernel.org>
parent 01a3044a
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -185,7 +185,6 @@ static void *setup_mm_hdr(u8 **dptr, size_t payload_size, size_t func)

	var_hdr = (struct smm_variable_communicate_header *)mm_hdr->data;
	var_hdr->function = func;
	if (dptr)
	*dptr = comm_buf;

	return var_hdr->data;