[PATCH v1] remoteproc:qcom:wcss:Remove double assignment in q6v5_wcss_probe()

Yuesong Li posted 1 patch 1 year, 5 months ago
drivers/remoteproc/qcom_q6v5_wcss.c | 1 -
1 file changed, 1 deletion(-)
[PATCH v1] remoteproc:qcom:wcss:Remove double assignment in q6v5_wcss_probe()
Posted by Yuesong Li 1 year, 5 months ago
cocci report a double assignment warning.'wcss->version' was assigned
twice in 'q6v5_wcss_probe()'.

Signed-off-by: Yuesong Li <liyuesong@vivo.com>
---
 drivers/remoteproc/qcom_q6v5_wcss.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/remoteproc/qcom_q6v5_wcss.c b/drivers/remoteproc/qcom_q6v5_wcss.c
index e913dabae992..9d4e8cfddbec 100644
--- a/drivers/remoteproc/qcom_q6v5_wcss.c
+++ b/drivers/remoteproc/qcom_q6v5_wcss.c
@@ -1021,7 +1021,6 @@ static int q6v5_wcss_probe(struct platform_device *pdev)
 
 	wcss = rproc->priv;
 	wcss->dev = &pdev->dev;
-	wcss->version = desc->version;
 
 	wcss->version = desc->version;
 	wcss->requires_force_stop = desc->requires_force_stop;
-- 
2.34.1