linux-stable/sound/soc/qcom/qdsp6
Pierre-Louis Bossart 12900bacb4
ASoC: qcom: q6afe: remove useless assignments
cppcheck warnings:

sound/soc/qcom/qdsp6/q6afe.c:848:25: note: Assignment 'p=NULL',
assigned value is 0
 struct q6afe_port *p = NULL;
                        ^
sound/soc/qcom/qdsp6/q6afe.c:854:7: note: Null pointer dereference
  if (p->token == token) {
      ^
sound/soc/qcom/qdsp6/q6afe.c:939:8: style: Redundant initialization
for 'wait'. The initialized value is overwritten before it is
read. [redundantInitialization]
  wait = &port->wait;
       ^
sound/soc/qcom/qdsp6/q6afe.c:933:26: note: wait is initialized
 wait_queue_head_t *wait = &port->wait;
                         ^
sound/soc/qcom/qdsp6/q6afe.c:939:8: note: wait is overwritten
  wait = &port->wait;
       ^
sound/soc/qcom/qdsp6/q6afe.c:1191:10: style: Redundant initialization
for 'port_id'. The initialized value is overwritten before it is
read. [redundantInitialization]
 port_id = port->id;
         ^
sound/soc/qcom/qdsp6/q6afe.c:1186:14: note: port_id is initialized
 int port_id = port->id;
             ^
sound/soc/qcom/qdsp6/q6afe.c:1191:10: note: port_id is overwritten
 port_id = port->id;
         ^

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20210218222916.89809-5-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2021-03-10 13:01:52 +00:00
..
Makefile ASoC: q6afe-clocks: add q6afe clock controller 2020-09-17 16:13:13 +01:00
q6adm.c ASoC: qcom: qdsp6: make use of devm_of_platform_populate 2020-10-27 14:13:34 +00:00
q6adm.h ASoC: qdsp6: q6adm: Add q6adm driver 2018-05-21 16:40:24 +01:00
q6afe-clocks.c Merge remote-tracking branch 'asoc/for-5.11' into asoc-next 2020-12-11 17:48:04 +00:00
q6afe-dai.c ASoC: qcom: q6dsp-dai: clarify expression 2021-03-10 13:01:51 +00:00
q6afe.c ASoC: qcom: q6afe: remove useless assignments 2021-03-10 13:01:52 +00:00
q6afe.h ASoC: q6dsp: q6afe: add codec lpass clocks 2020-09-10 13:29:28 +01:00
q6asm-dai.c ASoC: qcom: qdsp6: Move frontend AIFs to q6asm-dai 2021-01-13 11:36:14 +00:00
q6asm.c ASoC: q6asm: fix 'physical' typos 2021-01-27 13:06:53 +00:00
q6asm.h ASoC: q6asm-dai: add gapless support 2020-08-17 18:29:38 +01:00
q6core.c ASoC: qdsp6: add ifdef CONFIG_OF around of_device_id 2020-09-25 18:36:58 +01:00
q6core.h
q6dsp-common.c
q6dsp-common.h
q6dsp-errno.h
q6routing.c ASoC: qcom: qdsp6: Move frontend AIFs to q6asm-dai 2021-01-13 11:36:14 +00:00
q6routing.h ASoC: qdsp6: q6routing: Add q6routing driver 2018-05-21 16:41:48 +01:00