soc: qcom: qcom_aoss: Remove set but unused variable 'tlen'
authorLee Jones <lee.jones@linaro.org>
Tue, 3 Nov 2020 15:28:15 +0000 (15:28 +0000)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 11 Nov 2020 05:11:17 +0000 (23:11 -0600)
Fixes the following W=1 kernel build warning(s):

 drivers/soc/qcom/qcom_aoss.c: In function ‘qmp_send’:
 drivers/soc/qcom/qcom_aoss.c:228:9: warning: variable ‘tlen’ set but not used [-Wunused-but-set-variable]

Cc: Andy Gross <agross@kernel.org>
Cc: Bjorn Andersson <bjorn.andersson@linaro.org>
Cc: linux-arm-msm@vger.kernel.org
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/20201103152838.1290217-3-lee.jones@linaro.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/soc/qcom/qcom_aoss.c

index ed2c687..8358975 100644 (file)
@@ -225,7 +225,6 @@ static bool qmp_message_empty(struct qmp *qmp)
 static int qmp_send(struct qmp *qmp, const void *data, size_t len)
 {
        long time_left;
-       size_t tlen;
        int ret;
 
        if (WARN_ON(len + sizeof(u32) > qmp->size))
@@ -242,7 +241,7 @@ static int qmp_send(struct qmp *qmp, const void *data, size_t len)
        writel(len, qmp->msgram + qmp->offset);
 
        /* Read back len to confirm data written in message RAM */
-       tlen = readl(qmp->msgram + qmp->offset);
+       readl(qmp->msgram + qmp->offset);
        qmp_kick(qmp);
 
        time_left = wait_event_interruptible_timeout(qmp->event,