Skip to content

Commit 5f1b95d

Browse files
Yang Libroonie
authored andcommitted
ASoC: q6dsp: q6afe: remove unneeded dead-store initialization
Variables 'wait' and 'port_id' are being initialized, however the values are never read and updated later on, hence the redundant initializations can be removed. Cleans up clang warnings: sound/soc/qcom/qdsp6/q6afe.c:933:21: warning: Value stored to 'wait' during its initialization is never read sound/soc/qcom/qdsp6/q6afe.c:1186:6: warning: Value stored to 'port_id' during its initialization is never read Reported-by: Abaci Robot <abaci@linux.alibaba.com> Signed-off-by: Yang Li <yang.lee@linux.alibaba.com> Link: https://lore.kernel.org/r/1619345553-29781-1-git-send-email-yang.lee@linux.alibaba.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 85c966d commit 5f1b95d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/qcom/qdsp6/q6afe.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1183,7 +1183,7 @@ int q6afe_port_stop(struct q6afe_port *port)
11831183
struct afe_port_cmd_device_stop *stop;
11841184
struct q6afe *afe = port->afe;
11851185
struct apr_pkt *pkt;
1186-
int port_id = port->id;
1186+
int port_id;
11871187
int ret = 0;
11881188
int index, pkt_size;
11891189
void *p;

0 commit comments

Comments
 (0)