Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

firmware: qcom_scm: Remove redundant piece of code

The qcom_scm_pas_metadata_release() function already frees the allocated
memory and sets ctx->ptr to NULL. Resetting ctx->phys and ctx->size to
zero is unnecessary because the context is expected to be discarded
after release.

Lets removes redundant assignments.

Signed-off-by: Mukesh Ojha <mukesh.ojha@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20260105-kvmrprocv10-v10-2-022e96815380@oss.qualcomm.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>

authored by

Mukesh Ojha and committed by
Bjorn Andersson
25906ae9 ebb0bbef

-2
-2
drivers/firmware/qcom/qcom_scm.c
··· 650 650 dma_free_coherent(__scm->dev, ctx->size, ctx->ptr, ctx->phys); 651 651 652 652 ctx->ptr = NULL; 653 - ctx->phys = 0; 654 - ctx->size = 0; 655 653 } 656 654 EXPORT_SYMBOL_GPL(qcom_scm_pas_metadata_release); 657 655