From: Srinivas Kandagatla Date: Mon, 9 Aug 2021 12:31:36 +0000 (+0100) Subject: ASoC: qdsp6: q6asm: fix cppcheck warnings for unnecessary initialization X-Git-Tag: v5.15-rc1~36^2^2~55 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e05f9ee5eabf4b88f9b9b264c8594ee6984b2131;p=thirdparty%2Flinux.git ASoC: qdsp6: q6asm: fix cppcheck warnings for unnecessary initialization cppcheck reports below warning. q6asm.c:1631: (style) Variable 'port' is reassigned a value before the old one has been used. This is due to unnecessary initialization of variable port, which is now removed as part of this patch. Signed-off-by: Srinivas Kandagatla Link: https://lore.kernel.org/r/20210809123137.14456-2-srinivas.kandagatla@linaro.org Signed-off-by: Mark Brown --- diff --git a/sound/soc/qcom/qdsp6/q6asm.c b/sound/soc/qcom/qdsp6/q6asm.c index 36bf8bd4edd7c..9251d85489656 100644 --- a/sound/soc/qcom/qdsp6/q6asm.c +++ b/sound/soc/qcom/qdsp6/q6asm.c @@ -1624,7 +1624,7 @@ EXPORT_SYMBOL_GPL(q6asm_write_async); static void q6asm_reset_buf_state(struct audio_client *ac) { - struct audio_port_data *port = NULL; + struct audio_port_data *port; unsigned long flags; spin_lock_irqsave(&ac->lock, flags);