mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
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>
This commit is contained in:
parent
01a3044af5
commit
134ed10939
1 changed files with 1 additions and 2 deletions
|
@ -185,8 +185,7 @@ 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 = (struct smm_variable_communicate_header *)mm_hdr->data;
|
||||||
var_hdr->function = func;
|
var_hdr->function = func;
|
||||||
if (dptr)
|
*dptr = comm_buf;
|
||||||
*dptr = comm_buf;
|
|
||||||
|
|
||||||
return var_hdr->data;
|
return var_hdr->data;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue