firmware: qcom: scm: Remove reassignment to desc following initializer
authorMarijn Suijten <marijn.suijten@somainline.org>
Wed, 8 Dec 2021 08:34:21 +0000 (09:34 +0100)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Mon, 31 Jan 2022 21:00:46 +0000 (15:00 -0600)
Member assignments to qcom_scm_desc were moved into struct initializers
in 57d3b816718c ("firmware: qcom_scm: Remove thin wrappers") including
the case in qcom_scm_iommu_secure_ptbl_init, except that the - now
duplicate - assignment to desc was left in place. While not harmful,
remove this unnecessary extra reassignment.

Fixes: 57d3b816718c ("firmware: qcom_scm: Remove thin wrappers")
Signed-off-by: Marijn Suijten <marijn.suijten@somainline.org>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@somainline.org>
Reviewed-by: Alex Elder <elder@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20211208083423.22037-2-marijn.suijten@somainline.org
drivers/firmware/qcom_scm.c

index 7db8066b19fd50651a62c19a67621273cc5324ec..3f67bf774821d0d689f8e5944dae4225c0ed4cb1 100644 (file)
@@ -749,12 +749,6 @@ int qcom_scm_iommu_secure_ptbl_init(u64 addr, u32 size, u32 spare)
        };
        int ret;
 
-       desc.args[0] = addr;
-       desc.args[1] = size;
-       desc.args[2] = spare;
-       desc.arginfo = QCOM_SCM_ARGS(3, QCOM_SCM_RW, QCOM_SCM_VAL,
-                                    QCOM_SCM_VAL);
-
        ret = qcom_scm_call(__scm->dev, &desc, NULL);
 
        /* the pg table has been initialized already, ignore the error */