All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/16] ASoC: trivial changes for cppcheck warnings
@ 2022-05-20 21:17 Pierre-Louis Bossart
  2022-05-20 21:17 ` [PATCH 01/16] ASoC: cs35l45: typo in argument definition Pierre-Louis Bossart
                   ` (16 more replies)
  0 siblings, 17 replies; 18+ messages in thread
From: Pierre-Louis Bossart @ 2022-05-20 21:17 UTC (permalink / raw)
  To: alsa-devel; +Cc: tiwai, broonie, Pierre-Louis Bossart

This can probably wait for the next merge window, I found a number of
cppcheck warnings that I didn't see in my last checks. The irony is
that the only really important issue found by cppcheck was on one of
my previous DPCM changes (submitted separately as a fix).

Pierre-Louis Bossart (16):
  ASoC: cs35l45: typo in argument definition
  ASoC: cs42l42: remove redundant test
  ASoC: wcd-mbhc-v2: remove useless initialization
  ASoC: wcd9335: remove redundant tests
  ASoC: Intel: atom: sst: remove useless initialization
  ASoC: Intel: atom: sst_ipc: remove redundant test
  ASoC: Intel: atom: sst_ipc: remove useless initializations
  ASoC: Intel: atom: controls: remove useless initializations
  ASoC: Intel: boards: reset acpi_chan_package
  ASoC: Intel: sof_pcm512x: remove unnecessary init
  ASoC: mediatek: mt8195: simplify error handling
  ASoC: qcom: q6dsp: q6adm: remove useless initializations
  ASoC: qcom: q6dsp: remove spurious space
  ASoC: rockchip: simplify error handling
  ASoC: samsung: snow: simplify error handling
  ASoC: meson: remove useless initialization

 sound/soc/codecs/cs35l45.h                 | 2 +-
 sound/soc/codecs/cs42l42.c                 | 3 +--
 sound/soc/codecs/wcd-mbhc-v2.c             | 2 +-
 sound/soc/codecs/wcd9335.c                 | 4 ++--
 sound/soc/intel/atom/sst-atom-controls.c   | 4 ++--
 sound/soc/intel/atom/sst/sst.c             | 2 +-
 sound/soc/intel/atom/sst/sst_ipc.c         | 8 ++++----
 sound/soc/intel/boards/bytcr_rt5640.c      | 2 +-
 sound/soc/intel/boards/bytcr_rt5651.c      | 2 +-
 sound/soc/intel/boards/cht_bsw_rt5645.c    | 2 +-
 sound/soc/intel/boards/sof_pcm512x.c       | 2 +-
 sound/soc/mediatek/mt8195/mt8195-afe-clk.c | 8 ++++----
 sound/soc/meson/meson-codec-glue.c         | 2 +-
 sound/soc/qcom/qdsp6/q6adm.c               | 6 +++---
 sound/soc/rockchip/rk3288_hdmi_analog.c    | 4 ++--
 sound/soc/samsung/snow.c                   | 2 +-
 16 files changed, 27 insertions(+), 28 deletions(-)

-- 
2.30.2


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [PATCH 01/16] ASoC: cs35l45: typo in argument definition
  2022-05-20 21:17 [PATCH 00/16] ASoC: trivial changes for cppcheck warnings Pierre-Louis Bossart
@ 2022-05-20 21:17 ` Pierre-Louis Bossart
  2022-05-20 21:17 ` [PATCH 02/16] ASoC: cs42l42: remove redundant test Pierre-Louis Bossart
                   ` (15 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: Pierre-Louis Bossart @ 2022-05-20 21:17 UTC (permalink / raw)
  To: alsa-devel
  Cc: tiwai, Péter Ujfalusi, broonie, Bard Liao, Pierre-Louis Bossart

cppcheck warning:

sound/soc/codecs/cs35l45-tables.c:36:49: style:inconclusive: Function
'cs35l45_apply_patch' argument 1 names different: declaration
'cs43l45' definition 'cs35l45'. [funcArgNamesDifferent]

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
---
 sound/soc/codecs/cs35l45.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/codecs/cs35l45.h b/sound/soc/codecs/cs35l45.h
index 4e266d19cd1cd..8f98cbbf6209f 100644
--- a/sound/soc/codecs/cs35l45.h
+++ b/sound/soc/codecs/cs35l45.h
@@ -209,7 +209,7 @@ struct cs35l45_private {
 extern const struct dev_pm_ops cs35l45_pm_ops;
 extern const struct regmap_config cs35l45_i2c_regmap;
 extern const struct regmap_config cs35l45_spi_regmap;
-int cs35l45_apply_patch(struct cs35l45_private *cs43l45);
+int cs35l45_apply_patch(struct cs35l45_private *cs35l45);
 unsigned int cs35l45_get_clk_freq_id(unsigned int freq);
 int cs35l45_probe(struct cs35l45_private *cs35l45);
 int cs35l45_remove(struct cs35l45_private *cs35l45);
-- 
2.30.2


^ permalink raw reply related	[flat|nested] 18+ messages in thread

* [PATCH 02/16] ASoC: cs42l42: remove redundant test
  2022-05-20 21:17 [PATCH 00/16] ASoC: trivial changes for cppcheck warnings Pierre-Louis Bossart
  2022-05-20 21:17 ` [PATCH 01/16] ASoC: cs35l45: typo in argument definition Pierre-Louis Bossart
@ 2022-05-20 21:17 ` Pierre-Louis Bossart
  2022-05-20 21:17 ` [PATCH 03/16] ASoC: wcd-mbhc-v2: remove useless initialization Pierre-Louis Bossart
                   ` (14 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: Pierre-Louis Bossart @ 2022-05-20 21:17 UTC (permalink / raw)
  To: alsa-devel
  Cc: tiwai, Péter Ujfalusi, broonie, Bard Liao, Pierre-Louis Bossart

cppcheck warning:

sound/soc/codecs/cs42l42.c:1704:28: style: The statement 'if
(cs42l42->plug_state!=CS42L42_TS_TRANS)
cs42l42->plug_state=CS42L42_TS_TRANS' is logically equivalent to
'cs42l42->plug_state=CS42L42_TS_TRANS'. [duplicateConditionalAssign]
   if (cs42l42->plug_state != CS42L42_TS_TRANS)
                           ^
sound/soc/codecs/cs42l42.c:1705:25: note: Assignment
'cs42l42->plug_state=CS42L42_TS_TRANS'
    cs42l42->plug_state = CS42L42_TS_TRANS;
                        ^

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
---
 sound/soc/codecs/cs42l42.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sound/soc/codecs/cs42l42.c b/sound/soc/codecs/cs42l42.c
index 4fade23887972..6ca74c0d46eaa 100644
--- a/sound/soc/codecs/cs42l42.c
+++ b/sound/soc/codecs/cs42l42.c
@@ -1701,8 +1701,7 @@ static irqreturn_t cs42l42_irq_thread(int irq, void *data)
 			break;
 
 		default:
-			if (cs42l42->plug_state != CS42L42_TS_TRANS)
-				cs42l42->plug_state = CS42L42_TS_TRANS;
+			cs42l42->plug_state = CS42L42_TS_TRANS;
 		}
 	}
 
-- 
2.30.2


^ permalink raw reply related	[flat|nested] 18+ messages in thread

* [PATCH 03/16] ASoC: wcd-mbhc-v2: remove useless initialization
  2022-05-20 21:17 [PATCH 00/16] ASoC: trivial changes for cppcheck warnings Pierre-Louis Bossart
  2022-05-20 21:17 ` [PATCH 01/16] ASoC: cs35l45: typo in argument definition Pierre-Louis Bossart
  2022-05-20 21:17 ` [PATCH 02/16] ASoC: cs42l42: remove redundant test Pierre-Louis Bossart
@ 2022-05-20 21:17 ` Pierre-Louis Bossart
  2022-05-20 21:17 ` [PATCH 04/16] ASoC: wcd9335: remove redundant tests Pierre-Louis Bossart
                   ` (13 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: Pierre-Louis Bossart @ 2022-05-20 21:17 UTC (permalink / raw)
  To: alsa-devel
  Cc: tiwai, Péter Ujfalusi, broonie, Bard Liao, Pierre-Louis Bossart

cppcheck warning:

sound/soc/codecs/wcd-mbhc-v2.c:1309:17: style: Variable 'clamp_state'
is assigned a value that is never used. [unreadVariable]
 u8 clamp_state = 0;
                ^

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
---
 sound/soc/codecs/wcd-mbhc-v2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/codecs/wcd-mbhc-v2.c b/sound/soc/codecs/wcd-mbhc-v2.c
index c53c2ef33e1a2..31009283e7d4a 100644
--- a/sound/soc/codecs/wcd-mbhc-v2.c
+++ b/sound/soc/codecs/wcd-mbhc-v2.c
@@ -1306,7 +1306,7 @@ static irqreturn_t wcd_mbhc_adc_hs_rem_irq(int irq, void *data)
 static irqreturn_t wcd_mbhc_adc_hs_ins_irq(int irq, void *data)
 {
 	struct wcd_mbhc *mbhc = data;
-	u8 clamp_state = 0;
+	u8 clamp_state;
 	u8 clamp_retry = WCD_MBHC_FAKE_INS_RETRY;
 
 	/*
-- 
2.30.2


^ permalink raw reply related	[flat|nested] 18+ messages in thread

* [PATCH 04/16] ASoC: wcd9335: remove redundant tests
  2022-05-20 21:17 [PATCH 00/16] ASoC: trivial changes for cppcheck warnings Pierre-Louis Bossart
                   ` (2 preceding siblings ...)
  2022-05-20 21:17 ` [PATCH 03/16] ASoC: wcd-mbhc-v2: remove useless initialization Pierre-Louis Bossart
@ 2022-05-20 21:17 ` Pierre-Louis Bossart
  2022-05-20 21:17 ` [PATCH 05/16] ASoC: Intel: atom: sst: remove useless initialization Pierre-Louis Bossart
                   ` (12 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: Pierre-Louis Bossart @ 2022-05-20 21:17 UTC (permalink / raw)
  To: alsa-devel
  Cc: tiwai, Péter Ujfalusi, broonie, Bard Liao, Pierre-Louis Bossart

cppcheck warning:

sound/soc/codecs/wcd9335.c:1810:23: style: Condition 'tx_port>=4' is
always true [knownConditionTrueFalse]
  } else if ((tx_port >= 4) && (tx_port < 8)) {
                      ^

sound/soc/codecs/wcd9335.c:1806:15: note: Assuming that condition
'tx_port<4' is not redundant
  if (tx_port < 4) {
              ^
sound/soc/codecs/wcd9335.c:1810:23: note: Condition 'tx_port>=4' is
always true
  } else if ((tx_port >= 4) && (tx_port < 8)) {
                      ^

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
---
 sound/soc/codecs/wcd9335.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sound/soc/codecs/wcd9335.c b/sound/soc/codecs/wcd9335.c
index 617a36a89dfed..e1b6930480842 100644
--- a/sound/soc/codecs/wcd9335.c
+++ b/sound/soc/codecs/wcd9335.c
@@ -1807,11 +1807,11 @@ static int wcd9335_set_decimator_rate(struct snd_soc_dai *dai,
 			tx_port_reg = WCD9335_CDC_IF_ROUTER_TX_MUX_CFG0;
 			shift = (tx_port << 1);
 			shift_val = 0x03;
-		} else if ((tx_port >= 4) && (tx_port < 8)) {
+		} else if (tx_port < 8) {
 			tx_port_reg = WCD9335_CDC_IF_ROUTER_TX_MUX_CFG1;
 			shift = ((tx_port - 4) << 1);
 			shift_val = 0x03;
-		} else if ((tx_port >= 8) && (tx_port < 11)) {
+		} else if (tx_port < 11) {
 			tx_port_reg = WCD9335_CDC_IF_ROUTER_TX_MUX_CFG2;
 			shift = ((tx_port - 8) << 1);
 			shift_val = 0x03;
-- 
2.30.2


^ permalink raw reply related	[flat|nested] 18+ messages in thread

* [PATCH 05/16] ASoC: Intel: atom: sst: remove useless initialization
  2022-05-20 21:17 [PATCH 00/16] ASoC: trivial changes for cppcheck warnings Pierre-Louis Bossart
                   ` (3 preceding siblings ...)
  2022-05-20 21:17 ` [PATCH 04/16] ASoC: wcd9335: remove redundant tests Pierre-Louis Bossart
@ 2022-05-20 21:17 ` Pierre-Louis Bossart
  2022-05-20 21:17 ` [PATCH 06/16] ASoC: Intel: atom: sst_ipc: remove redundant test Pierre-Louis Bossart
                   ` (11 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: Pierre-Louis Bossart @ 2022-05-20 21:17 UTC (permalink / raw)
  To: alsa-devel
  Cc: tiwai, Péter Ujfalusi, broonie, Bard Liao, Pierre-Louis Bossart

cppcheck reports an invalid null pointer dereference but there's
indeed no need to initialize a loop variable.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
---
 sound/soc/intel/atom/sst/sst.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/intel/atom/sst/sst.c b/sound/soc/intel/atom/sst/sst.c
index 3a42d68c0247b..160b50f479fb4 100644
--- a/sound/soc/intel/atom/sst/sst.c
+++ b/sound/soc/intel/atom/sst/sst.c
@@ -114,7 +114,7 @@ static irqreturn_t intel_sst_interrupt_mrfld(int irq, void *context)
 static irqreturn_t intel_sst_irq_thread_mrfld(int irq, void *context)
 {
 	struct intel_sst_drv *drv = (struct intel_sst_drv *) context;
-	struct ipc_post *__msg, *msg = NULL;
+	struct ipc_post *__msg, *msg;
 	unsigned long irq_flags;
 
 	spin_lock_irqsave(&drv->rx_msg_lock, irq_flags);
-- 
2.30.2


^ permalink raw reply related	[flat|nested] 18+ messages in thread

* [PATCH 06/16] ASoC: Intel: atom: sst_ipc: remove redundant test
  2022-05-20 21:17 [PATCH 00/16] ASoC: trivial changes for cppcheck warnings Pierre-Louis Bossart
                   ` (4 preceding siblings ...)
  2022-05-20 21:17 ` [PATCH 05/16] ASoC: Intel: atom: sst: remove useless initialization Pierre-Louis Bossart
@ 2022-05-20 21:17 ` Pierre-Louis Bossart
  2022-05-20 21:17 ` [PATCH 07/16] ASoC: Intel: atom: sst_ipc: remove useless initializations Pierre-Louis Bossart
                   ` (10 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: Pierre-Louis Bossart @ 2022-05-20 21:17 UTC (permalink / raw)
  To: alsa-devel
  Cc: tiwai, Péter Ujfalusi, broonie, Bard Liao, Pierre-Louis Bossart

cppcheck warning:

sound/soc/intel/atom/sst/sst_ipc.c:344:30: style: Condition 'drv_id'
is always true [knownConditionTrueFalse]
 if (msg_high.part.result && drv_id && !msg_high.part.large) {
                             ^
sound/soc/intel/atom/sst/sst_ipc.c:337:13: note: Assuming that
condition 'drv_id==0' is not redundant
 if (drv_id == SST_ASYNC_DRV_ID) {
            ^
sound/soc/intel/atom/sst/sst_ipc.c:344:30: note: Condition 'drv_id' is
always true
 if (msg_high.part.result && drv_id && !msg_high.part.large) {
                             ^

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
---
 sound/soc/intel/atom/sst/sst_ipc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/intel/atom/sst/sst_ipc.c b/sound/soc/intel/atom/sst/sst_ipc.c
index 4e8382097e618..78ea67c7a1281 100644
--- a/sound/soc/intel/atom/sst/sst_ipc.c
+++ b/sound/soc/intel/atom/sst/sst_ipc.c
@@ -341,7 +341,7 @@ void sst_process_reply_mrfld(struct intel_sst_drv *sst_drv_ctx,
 	}
 
 	/* FW sent short error response for an IPC */
-	if (msg_high.part.result && drv_id && !msg_high.part.large) {
+	if (msg_high.part.result && !msg_high.part.large) {
 		/* 32-bit FW error code in msg_low */
 		dev_err(sst_drv_ctx->dev, "FW sent error response 0x%x", msg_low);
 		sst_wake_up_block(sst_drv_ctx, msg_high.part.result,
-- 
2.30.2


^ permalink raw reply related	[flat|nested] 18+ messages in thread

* [PATCH 07/16] ASoC: Intel: atom: sst_ipc: remove useless initializations
  2022-05-20 21:17 [PATCH 00/16] ASoC: trivial changes for cppcheck warnings Pierre-Louis Bossart
                   ` (5 preceding siblings ...)
  2022-05-20 21:17 ` [PATCH 06/16] ASoC: Intel: atom: sst_ipc: remove redundant test Pierre-Louis Bossart
@ 2022-05-20 21:17 ` Pierre-Louis Bossart
  2022-05-20 21:17 ` [PATCH 08/16] ASoC: Intel: atom: controls: " Pierre-Louis Bossart
                   ` (9 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: Pierre-Louis Bossart @ 2022-05-20 21:17 UTC (permalink / raw)
  To: alsa-devel
  Cc: tiwai, Péter Ujfalusi, broonie, Bard Liao, Pierre-Louis Bossart

cppcheck throws invalid NULL dereference warnings but there's indeed
no need to initialize a loop variable or initialize to NULL before
allocating memory.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
---
 sound/soc/intel/atom/sst/sst_ipc.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/sound/soc/intel/atom/sst/sst_ipc.c b/sound/soc/intel/atom/sst/sst_ipc.c
index 78ea67c7a1281..4e039c7173d8c 100644
--- a/sound/soc/intel/atom/sst/sst_ipc.c
+++ b/sound/soc/intel/atom/sst/sst_ipc.c
@@ -28,7 +28,7 @@
 struct sst_block *sst_create_block(struct intel_sst_drv *ctx,
 					u32 msg_id, u32 drv_id)
 {
-	struct sst_block *msg = NULL;
+	struct sst_block *msg;
 
 	dev_dbg(ctx->dev, "Enter\n");
 	msg = kzalloc(sizeof(*msg), GFP_KERNEL);
@@ -63,7 +63,7 @@ struct sst_block *sst_create_block(struct intel_sst_drv *ctx,
 int sst_wake_up_block(struct intel_sst_drv *ctx, int result,
 		u32 drv_id, u32 ipc, void *data, u32 size)
 {
-	struct sst_block *block = NULL;
+	struct sst_block *block;
 
 	dev_dbg(ctx->dev, "Enter\n");
 
@@ -91,7 +91,7 @@ int sst_wake_up_block(struct intel_sst_drv *ctx, int result,
 
 int sst_free_block(struct intel_sst_drv *ctx, struct sst_block *freed)
 {
-	struct sst_block *block = NULL, *__block;
+	struct sst_block *block, *__block;
 
 	dev_dbg(ctx->dev, "Enter\n");
 	spin_lock_bh(&ctx->block_lock);
-- 
2.30.2


^ permalink raw reply related	[flat|nested] 18+ messages in thread

* [PATCH 08/16] ASoC: Intel: atom: controls: remove useless initializations
  2022-05-20 21:17 [PATCH 00/16] ASoC: trivial changes for cppcheck warnings Pierre-Louis Bossart
                   ` (6 preceding siblings ...)
  2022-05-20 21:17 ` [PATCH 07/16] ASoC: Intel: atom: sst_ipc: remove useless initializations Pierre-Louis Bossart
@ 2022-05-20 21:17 ` Pierre-Louis Bossart
  2022-05-20 21:17 ` [PATCH 09/16] ASoC: Intel: boards: reset acpi_chan_package Pierre-Louis Bossart
                   ` (8 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: Pierre-Louis Bossart @ 2022-05-20 21:17 UTC (permalink / raw)
  To: alsa-devel
  Cc: tiwai, Péter Ujfalusi, broonie, Bard Liao, Pierre-Louis Bossart

cppcheck complains about invalid NULL dereferences but there's indeed
no need to initialize loop variables or before allocating memory.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
---
 sound/soc/intel/atom/sst-atom-controls.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sound/soc/intel/atom/sst-atom-controls.c b/sound/soc/intel/atom/sst-atom-controls.c
index 335c327329945..34d63252debfd 100644
--- a/sound/soc/intel/atom/sst-atom-controls.c
+++ b/sound/soc/intel/atom/sst-atom-controls.c
@@ -1328,7 +1328,7 @@ int sst_send_pipe_gains(struct snd_soc_dai *dai, int stream, int mute)
 {
 	struct sst_data *drv = snd_soc_dai_get_drvdata(dai);
 	struct snd_soc_dapm_widget *w;
-	struct snd_soc_dapm_path *p = NULL;
+	struct snd_soc_dapm_path *p;
 
 	dev_dbg(dai->dev, "enter, dai-name=%s dir=%d\n", dai->name, stream);
 
@@ -1392,7 +1392,7 @@ int sst_send_pipe_gains(struct snd_soc_dai *dai, int stream, int mute)
 static int sst_fill_module_list(struct snd_kcontrol *kctl,
 	 struct snd_soc_dapm_widget *w, int type)
 {
-	struct sst_module *module = NULL;
+	struct sst_module *module;
 	struct snd_soc_component *c = snd_soc_dapm_to_component(w->dapm);
 	struct sst_ids *ids = w->priv;
 	int ret = 0;
-- 
2.30.2


^ permalink raw reply related	[flat|nested] 18+ messages in thread

* [PATCH 09/16] ASoC: Intel: boards: reset acpi_chan_package
  2022-05-20 21:17 [PATCH 00/16] ASoC: trivial changes for cppcheck warnings Pierre-Louis Bossart
                   ` (7 preceding siblings ...)
  2022-05-20 21:17 ` [PATCH 08/16] ASoC: Intel: atom: controls: " Pierre-Louis Bossart
@ 2022-05-20 21:17 ` Pierre-Louis Bossart
  2022-05-20 21:17 ` [PATCH 10/16] ASoC: Intel: sof_pcm512x: remove unnecessary init Pierre-Louis Bossart
                   ` (7 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: Pierre-Louis Bossart @ 2022-05-20 21:17 UTC (permalink / raw)
  To: alsa-devel
  Cc: tiwai, Péter Ujfalusi, broonie, Bard Liao, Pierre-Louis Bossart

cppcheck complains about possible tests of uninitialized 'aif_value'
members. This isn't really possible but static analysis cannot know
what ACPICA does, so make sure the acpi_chan_package structure is
reset prior to use to make the warning go away.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
---
 sound/soc/intel/boards/bytcr_rt5640.c   | 2 +-
 sound/soc/intel/boards/bytcr_rt5651.c   | 2 +-
 sound/soc/intel/boards/cht_bsw_rt5645.c | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/sound/soc/intel/boards/bytcr_rt5640.c b/sound/soc/intel/boards/bytcr_rt5640.c
index 7b948a219177d..7cc85fd862b21 100644
--- a/sound/soc/intel/boards/bytcr_rt5640.c
+++ b/sound/soc/intel/boards/bytcr_rt5640.c
@@ -1634,7 +1634,7 @@ static int snd_byt_rt5640_mc_probe(struct platform_device *pdev)
 		 * with the codec driver/pdata are non-existent
 		 */
 
-		struct acpi_chan_package chan_package;
+		struct acpi_chan_package chan_package = { 0 };
 
 		/* format specified: 2 64-bit integers */
 		struct acpi_buffer format = {sizeof("NN"), "NN"};
diff --git a/sound/soc/intel/boards/bytcr_rt5651.c b/sound/soc/intel/boards/bytcr_rt5651.c
index d467fcaa48eaa..03a52b1069a92 100644
--- a/sound/soc/intel/boards/bytcr_rt5651.c
+++ b/sound/soc/intel/boards/bytcr_rt5651.c
@@ -952,7 +952,7 @@ static int snd_byt_rt5651_mc_probe(struct platform_device *pdev)
 		 * with the codec driver/pdata are non-existent
 		 */
 
-		struct acpi_chan_package chan_package;
+		struct acpi_chan_package chan_package = { 0 };
 
 		/* format specified: 2 64-bit integers */
 		struct acpi_buffer format = {sizeof("NN"), "NN"};
diff --git a/sound/soc/intel/boards/cht_bsw_rt5645.c b/sound/soc/intel/boards/cht_bsw_rt5645.c
index 45c301ea5e003..453281326c831 100644
--- a/sound/soc/intel/boards/cht_bsw_rt5645.c
+++ b/sound/soc/intel/boards/cht_bsw_rt5645.c
@@ -603,7 +603,7 @@ static int snd_cht_mc_probe(struct platform_device *pdev)
 		 * with the codec driver/pdata are non-existent
 		 */
 
-		struct acpi_chan_package chan_package;
+		struct acpi_chan_package chan_package = { 0 };
 
 		/* format specified: 2 64-bit integers */
 		struct acpi_buffer format = {sizeof("NN"), "NN"};
-- 
2.30.2


^ permalink raw reply related	[flat|nested] 18+ messages in thread

* [PATCH 10/16] ASoC: Intel: sof_pcm512x: remove unnecessary init
  2022-05-20 21:17 [PATCH 00/16] ASoC: trivial changes for cppcheck warnings Pierre-Louis Bossart
                   ` (8 preceding siblings ...)
  2022-05-20 21:17 ` [PATCH 09/16] ASoC: Intel: boards: reset acpi_chan_package Pierre-Louis Bossart
@ 2022-05-20 21:17 ` Pierre-Louis Bossart
  2022-05-20 21:17 ` [PATCH 11/16] ASoC: mediatek: mt8195: simplify error handling Pierre-Louis Bossart
                   ` (6 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: Pierre-Louis Bossart @ 2022-05-20 21:17 UTC (permalink / raw)
  To: alsa-devel
  Cc: tiwai, Péter Ujfalusi, broonie, Bard Liao, Pierre-Louis Bossart

cppcheck complains about an invalid NULL dereference but indeed there
is no need to initialize a loop variable.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
---
 sound/soc/intel/boards/sof_pcm512x.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/intel/boards/sof_pcm512x.c b/sound/soc/intel/boards/sof_pcm512x.c
index 6815204e58d58..d4c67d5340a92 100644
--- a/sound/soc/intel/boards/sof_pcm512x.c
+++ b/sound/soc/intel/boards/sof_pcm512x.c
@@ -419,7 +419,7 @@ static int sof_audio_probe(struct platform_device *pdev)
 static int sof_pcm512x_remove(struct platform_device *pdev)
 {
 	struct snd_soc_card *card = platform_get_drvdata(pdev);
-	struct snd_soc_component *component = NULL;
+	struct snd_soc_component *component;
 
 	for_each_card_components(card, component) {
 		if (!strcmp(component->name, pcm512x_component[0].name)) {
-- 
2.30.2


^ permalink raw reply related	[flat|nested] 18+ messages in thread

* [PATCH 11/16] ASoC: mediatek: mt8195: simplify error handling
  2022-05-20 21:17 [PATCH 00/16] ASoC: trivial changes for cppcheck warnings Pierre-Louis Bossart
                   ` (9 preceding siblings ...)
  2022-05-20 21:17 ` [PATCH 10/16] ASoC: Intel: sof_pcm512x: remove unnecessary init Pierre-Louis Bossart
@ 2022-05-20 21:17 ` Pierre-Louis Bossart
  2022-05-20 21:17 ` [PATCH 12/16] ASoC: qcom: q6dsp: q6adm: remove useless initializations Pierre-Louis Bossart
                   ` (5 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: Pierre-Louis Bossart @ 2022-05-20 21:17 UTC (permalink / raw)
  To: alsa-devel
  Cc: tiwai, Péter Ujfalusi, broonie, Bard Liao, Pierre-Louis Bossart

cppcheck warnings:

sound/soc/mediatek/mt8195/mt8195-afe-clk.c:311:9: warning: Identical
condition and return expression 'ret', return value is always 0
[identicalConditionAfterEarlyExit]
 return ret;
        ^
sound/soc/mediatek/mt8195/mt8195-afe-clk.c:297:6: note: If condition
'ret' is true, the function will return/exit
 if (ret)
     ^
sound/soc/mediatek/mt8195/mt8195-afe-clk.c:311:9: note: Returning
identical expression 'ret'
 return ret;
        ^
sound/soc/mediatek/mt8195/mt8195-afe-clk.c:341:9: warning: Identical
condition and return expression 'ret', return value is always 0
[identicalConditionAfterEarlyExit]
 return ret;
        ^
sound/soc/mediatek/mt8195/mt8195-afe-clk.c:338:6: note: If condition
'ret' is true, the function will return/exit
if (ret)
     ^
sound/soc/mediatek/mt8195/mt8195-afe-clk.c:341:9: note: Returning
identical expression 'ret'
return ret;
        ^

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
---
 sound/soc/mediatek/mt8195/mt8195-afe-clk.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/sound/soc/mediatek/mt8195/mt8195-afe-clk.c b/sound/soc/mediatek/mt8195/mt8195-afe-clk.c
index efd5cc364a351..2ee3872c83c36 100644
--- a/sound/soc/mediatek/mt8195/mt8195-afe-clk.c
+++ b/sound/soc/mediatek/mt8195/mt8195-afe-clk.c
@@ -284,7 +284,7 @@ static int mt8195_afe_enable_apll_tuner(struct mtk_base_afe *afe,
 {
 	struct mt8195_afe_tuner_cfg *cfg = mt8195_afe_found_apll_tuner(id);
 	unsigned long flags;
-	int ret = 0;
+	int ret;
 
 	if (!cfg)
 		return -EINVAL;
@@ -308,7 +308,7 @@ static int mt8195_afe_enable_apll_tuner(struct mtk_base_afe *afe,
 
 	spin_unlock_irqrestore(&cfg->ctrl_lock, flags);
 
-	return ret;
+	return 0;
 }
 
 static int mt8195_afe_disable_apll_tuner(struct mtk_base_afe *afe,
@@ -316,7 +316,7 @@ static int mt8195_afe_disable_apll_tuner(struct mtk_base_afe *afe,
 {
 	struct mt8195_afe_tuner_cfg *cfg = mt8195_afe_found_apll_tuner(id);
 	unsigned long flags;
-	int ret = 0;
+	int ret;
 
 	if (!cfg)
 		return -EINVAL;
@@ -338,7 +338,7 @@ static int mt8195_afe_disable_apll_tuner(struct mtk_base_afe *afe,
 	if (ret)
 		return ret;
 
-	return ret;
+	return 0;
 }
 
 int mt8195_afe_get_mclk_source_clk_id(int sel)
-- 
2.30.2


^ permalink raw reply related	[flat|nested] 18+ messages in thread

* [PATCH 12/16] ASoC: qcom: q6dsp: q6adm: remove useless initializations
  2022-05-20 21:17 [PATCH 00/16] ASoC: trivial changes for cppcheck warnings Pierre-Louis Bossart
                   ` (10 preceding siblings ...)
  2022-05-20 21:17 ` [PATCH 11/16] ASoC: mediatek: mt8195: simplify error handling Pierre-Louis Bossart
@ 2022-05-20 21:17 ` Pierre-Louis Bossart
  2022-05-20 21:17 ` [PATCH 13/16] ASoC: qcom: q6dsp: remove spurious space Pierre-Louis Bossart
                   ` (4 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: Pierre-Louis Bossart @ 2022-05-20 21:17 UTC (permalink / raw)
  To: alsa-devel
  Cc: tiwai, Péter Ujfalusi, broonie, Bard Liao, Pierre-Louis Bossart

cppcheck complains about invalid NULL dereferences but there's
indeed no need to initialize loop variables.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
---
 sound/soc/qcom/qdsp6/q6adm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sound/soc/qcom/qdsp6/q6adm.c b/sound/soc/qcom/qdsp6/q6adm.c
index 72c5719f1d253..22b408c3794e0 100644
--- a/sound/soc/qcom/qdsp6/q6adm.c
+++ b/sound/soc/qcom/qdsp6/q6adm.c
@@ -90,7 +90,7 @@ struct q6adm_session_map_node_v5 {
 static struct q6copp *q6adm_find_copp(struct q6adm *adm, int port_idx,
 				  int copp_idx)
 {
-	struct q6copp *c = NULL;
+	struct q6copp *c;
 	struct q6copp *ret = NULL;
 	unsigned long flags;
 
@@ -299,7 +299,7 @@ static struct q6copp *q6adm_find_matching_copp(struct q6adm *adm,
 					       int channel_mode, int bit_width,
 					       int app_type)
 {
-	struct q6copp *c = NULL;
+	struct q6copp *c;
 	struct q6copp *ret = NULL;
 	unsigned long flags;
 
-- 
2.30.2


^ permalink raw reply related	[flat|nested] 18+ messages in thread

* [PATCH 13/16] ASoC: qcom: q6dsp: remove spurious space
  2022-05-20 21:17 [PATCH 00/16] ASoC: trivial changes for cppcheck warnings Pierre-Louis Bossart
                   ` (11 preceding siblings ...)
  2022-05-20 21:17 ` [PATCH 12/16] ASoC: qcom: q6dsp: q6adm: remove useless initializations Pierre-Louis Bossart
@ 2022-05-20 21:17 ` Pierre-Louis Bossart
  2022-05-20 21:17 ` [PATCH 14/16] ASoC: rockchip: simplify error handling Pierre-Louis Bossart
                   ` (3 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: Pierre-Louis Bossart @ 2022-05-20 21:17 UTC (permalink / raw)
  To: alsa-devel
  Cc: tiwai, Péter Ujfalusi, broonie, Bard Liao, Pierre-Louis Bossart

cppcheck warning:

sound/soc/qcom/qdsp6/q6adm.c:183:14: warning:inconclusive: Found
suspicious oper ator '*' [constStatement]
  } __packed * open = data->payload;
             ^

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
---
 sound/soc/qcom/qdsp6/q6adm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/qcom/qdsp6/q6adm.c b/sound/soc/qcom/qdsp6/q6adm.c
index 22b408c3794e0..01f383888b622 100644
--- a/sound/soc/qcom/qdsp6/q6adm.c
+++ b/sound/soc/qcom/qdsp6/q6adm.c
@@ -180,7 +180,7 @@ static int q6adm_callback(struct apr_device *adev, struct apr_resp_pkt *data)
 			u32 status;
 			u16 copp_id;
 			u16 reserved;
-		} __packed * open = data->payload;
+		} __packed *open = data->payload;
 
 		copp = q6adm_find_copp(adm, port_idx, copp_idx);
 		if (!copp)
-- 
2.30.2


^ permalink raw reply related	[flat|nested] 18+ messages in thread

* [PATCH 14/16] ASoC: rockchip: simplify error handling
  2022-05-20 21:17 [PATCH 00/16] ASoC: trivial changes for cppcheck warnings Pierre-Louis Bossart
                   ` (12 preceding siblings ...)
  2022-05-20 21:17 ` [PATCH 13/16] ASoC: qcom: q6dsp: remove spurious space Pierre-Louis Bossart
@ 2022-05-20 21:17 ` Pierre-Louis Bossart
  2022-05-20 21:17 ` [PATCH 15/16] ASoC: samsung: snow: " Pierre-Louis Bossart
                   ` (2 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: Pierre-Louis Bossart @ 2022-05-20 21:17 UTC (permalink / raw)
  To: alsa-devel
  Cc: tiwai, Péter Ujfalusi, broonie, Bard Liao, Pierre-Louis Bossart

cppcheck warning:

sound/soc/rockchip/rk3288_hdmi_analog.c:256:9: warning: Identical
condition and return expression 'ret', return value is always 0
[identicalConditionAfterEarlyExit]
 return ret;
        ^
sound/soc/rockchip/rk3288_hdmi_analog.c:252:6: note: If condition
'ret' is true, the function will return/exit
 if (ret)
     ^
sound/soc/rockchip/rk3288_hdmi_analog.c:256:9: note: Returning
identical expression 'ret'
 return ret;
        ^

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
---
 sound/soc/rockchip/rk3288_hdmi_analog.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sound/soc/rockchip/rk3288_hdmi_analog.c b/sound/soc/rockchip/rk3288_hdmi_analog.c
index bcdeddeba80c9..0c6bd9a019dbe 100644
--- a/sound/soc/rockchip/rk3288_hdmi_analog.c
+++ b/sound/soc/rockchip/rk3288_hdmi_analog.c
@@ -169,7 +169,7 @@ static struct snd_soc_card snd_soc_card_rk = {
 
 static int snd_rk_mc_probe(struct platform_device *pdev)
 {
-	int ret = 0;
+	int ret;
 	struct snd_soc_card *card = &snd_soc_card_rk;
 	struct device_node *np = pdev->dev.of_node;
 	struct rk_drvdata *machine;
@@ -253,7 +253,7 @@ static int snd_rk_mc_probe(struct platform_device *pdev)
 		return dev_err_probe(&pdev->dev, ret,
 				     "Soc register card failed\n");
 
-	return ret;
+	return 0;
 }
 
 static const struct of_device_id rockchip_sound_of_match[] = {
-- 
2.30.2


^ permalink raw reply related	[flat|nested] 18+ messages in thread

* [PATCH 15/16] ASoC: samsung: snow: simplify error handling
  2022-05-20 21:17 [PATCH 00/16] ASoC: trivial changes for cppcheck warnings Pierre-Louis Bossart
                   ` (13 preceding siblings ...)
  2022-05-20 21:17 ` [PATCH 14/16] ASoC: rockchip: simplify error handling Pierre-Louis Bossart
@ 2022-05-20 21:17 ` Pierre-Louis Bossart
  2022-05-20 21:17 ` [PATCH 16/16] ASoC: meson: remove useless initialization Pierre-Louis Bossart
  2022-06-07 10:55 ` [PATCH 00/16] ASoC: trivial changes for cppcheck warnings Mark Brown
  16 siblings, 0 replies; 18+ messages in thread
From: Pierre-Louis Bossart @ 2022-05-20 21:17 UTC (permalink / raw)
  To: alsa-devel
  Cc: tiwai, Péter Ujfalusi, broonie, Bard Liao, Pierre-Louis Bossart

cppcheck warning:

sound/soc/samsung/snow.c:219:9: warning: Identical condition and
return expression 'ret', return value is always 0
[identicalConditionAfterEarlyExit]
 return ret;
        ^
sound/soc/samsung/snow.c:215:6: note: If condition 'ret' is true, the
function will return/exit
if (ret)
     ^
sound/soc/samsung/snow.c:219:9: note: Returning identical expression
'ret'
 return ret;
        ^

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
---
 sound/soc/samsung/snow.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/samsung/snow.c b/sound/soc/samsung/snow.c
index 02372109c251e..da342da038804 100644
--- a/sound/soc/samsung/snow.c
+++ b/sound/soc/samsung/snow.c
@@ -216,7 +216,7 @@ static int snow_probe(struct platform_device *pdev)
 		return dev_err_probe(&pdev->dev, ret,
 				     "snd_soc_register_card failed\n");
 
-	return ret;
+	return 0;
 }
 
 static int snow_remove(struct platform_device *pdev)
-- 
2.30.2


^ permalink raw reply related	[flat|nested] 18+ messages in thread

* [PATCH 16/16] ASoC: meson: remove useless initialization
  2022-05-20 21:17 [PATCH 00/16] ASoC: trivial changes for cppcheck warnings Pierre-Louis Bossart
                   ` (14 preceding siblings ...)
  2022-05-20 21:17 ` [PATCH 15/16] ASoC: samsung: snow: " Pierre-Louis Bossart
@ 2022-05-20 21:17 ` Pierre-Louis Bossart
  2022-06-07 10:55 ` [PATCH 00/16] ASoC: trivial changes for cppcheck warnings Mark Brown
  16 siblings, 0 replies; 18+ messages in thread
From: Pierre-Louis Bossart @ 2022-05-20 21:17 UTC (permalink / raw)
  To: alsa-devel
  Cc: tiwai, Péter Ujfalusi, broonie, Bard Liao, Pierre-Louis Bossart

cppcheck complains about invalid NULL dereferences but there's indeed
no need to initialize a loop variable.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
---
 sound/soc/meson/meson-codec-glue.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/meson/meson-codec-glue.c b/sound/soc/meson/meson-codec-glue.c
index 2870cfad813ac..80c5ed196961d 100644
--- a/sound/soc/meson/meson-codec-glue.c
+++ b/sound/soc/meson/meson-codec-glue.c
@@ -13,7 +13,7 @@
 static struct snd_soc_dapm_widget *
 meson_codec_glue_get_input(struct snd_soc_dapm_widget *w)
 {
-	struct snd_soc_dapm_path *p = NULL;
+	struct snd_soc_dapm_path *p;
 	struct snd_soc_dapm_widget *in;
 
 	snd_soc_dapm_widget_for_each_source_path(w, p) {
-- 
2.30.2


^ permalink raw reply related	[flat|nested] 18+ messages in thread

* Re: [PATCH 00/16] ASoC: trivial changes for cppcheck warnings
  2022-05-20 21:17 [PATCH 00/16] ASoC: trivial changes for cppcheck warnings Pierre-Louis Bossart
                   ` (15 preceding siblings ...)
  2022-05-20 21:17 ` [PATCH 16/16] ASoC: meson: remove useless initialization Pierre-Louis Bossart
@ 2022-06-07 10:55 ` Mark Brown
  16 siblings, 0 replies; 18+ messages in thread
From: Mark Brown @ 2022-06-07 10:55 UTC (permalink / raw)
  To: alsa-devel, pierre-louis.bossart; +Cc: tiwai

On Fri, 20 May 2022 16:17:03 -0500, Pierre-Louis Bossart wrote:
> This can probably wait for the next merge window, I found a number of
> cppcheck warnings that I didn't see in my last checks. The irony is
> that the only really important issue found by cppcheck was on one of
> my previous DPCM changes (submitted separately as a fix).
> 
> Pierre-Louis Bossart (16):
>   ASoC: cs35l45: typo in argument definition
>   ASoC: cs42l42: remove redundant test
>   ASoC: wcd-mbhc-v2: remove useless initialization
>   ASoC: wcd9335: remove redundant tests
>   ASoC: Intel: atom: sst: remove useless initialization
>   ASoC: Intel: atom: sst_ipc: remove redundant test
>   ASoC: Intel: atom: sst_ipc: remove useless initializations
>   ASoC: Intel: atom: controls: remove useless initializations
>   ASoC: Intel: boards: reset acpi_chan_package
>   ASoC: Intel: sof_pcm512x: remove unnecessary init
>   ASoC: mediatek: mt8195: simplify error handling
>   ASoC: qcom: q6dsp: q6adm: remove useless initializations
>   ASoC: qcom: q6dsp: remove spurious space
>   ASoC: rockchip: simplify error handling
>   ASoC: samsung: snow: simplify error handling
>   ASoC: meson: remove useless initialization
> 
> [...]

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next

Thanks!

[01/16] ASoC: cs35l45: typo in argument definition
        commit: 0511e2ac4e848ceac14b3ac4b476f0e26b48ddb2
[02/16] ASoC: cs42l42: remove redundant test
        commit: 94f8f2068ed0e3a5e367029f64ed76e6e65d5eb3
[03/16] ASoC: wcd-mbhc-v2: remove useless initialization
        commit: cac24a360a6b948ffb75c3d7ccc819064300454c
[04/16] ASoC: wcd9335: remove redundant tests
        commit: 0016361dfcc93a70850c6909fb76f15305dda5ae
[05/16] ASoC: Intel: atom: sst: remove useless initialization
        commit: fb6ed937aaa0703bcdacfe013897d583a6eba365
[06/16] ASoC: Intel: atom: sst_ipc: remove redundant test
        commit: d8af541139fa135a250c5ae743bfec3b49e97c3a
[07/16] ASoC: Intel: atom: sst_ipc: remove useless initializations
        commit: a140785b701d286374ea1b26762f333e4f5e9ee3
[08/16] ASoC: Intel: atom: controls: remove useless initializations
        commit: f6cd55a19f3f46e3d36b1121f844956128c60b6a
[09/16] ASoC: Intel: boards: reset acpi_chan_package
        commit: 9972773c26125242b467f0062c1fee874c87ae68
[10/16] ASoC: Intel: sof_pcm512x: remove unnecessary init
        commit: f057852fd351741d1efaadc48aa59ea49c79a087
[11/16] ASoC: mediatek: mt8195: simplify error handling
        commit: 9e9fb5d3f387788d50f5eae4c01ff60429691e71
[12/16] ASoC: qcom: q6dsp: q6adm: remove useless initializations
        commit: 015d9ab7805fb1b3766d1dc487ed34dbc03bd4da
[13/16] ASoC: qcom: q6dsp: remove spurious space
        commit: 7518be0cc120d7617a8985787196cd5776b93688
[14/16] ASoC: rockchip: simplify error handling
        commit: 59a6cc5c5d64ca20461fec46e450e0639b1e6410
[15/16] ASoC: samsung: snow: simplify error handling
        commit: 0c57064e3fdba9bb76086b9a6e318eb0cef24b69
[16/16] ASoC: meson: remove useless initialization
        commit: 7188b28f6686af0bc4aa1f96d720de782769a0a9

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2022-06-07 10:56 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-20 21:17 [PATCH 00/16] ASoC: trivial changes for cppcheck warnings Pierre-Louis Bossart
2022-05-20 21:17 ` [PATCH 01/16] ASoC: cs35l45: typo in argument definition Pierre-Louis Bossart
2022-05-20 21:17 ` [PATCH 02/16] ASoC: cs42l42: remove redundant test Pierre-Louis Bossart
2022-05-20 21:17 ` [PATCH 03/16] ASoC: wcd-mbhc-v2: remove useless initialization Pierre-Louis Bossart
2022-05-20 21:17 ` [PATCH 04/16] ASoC: wcd9335: remove redundant tests Pierre-Louis Bossart
2022-05-20 21:17 ` [PATCH 05/16] ASoC: Intel: atom: sst: remove useless initialization Pierre-Louis Bossart
2022-05-20 21:17 ` [PATCH 06/16] ASoC: Intel: atom: sst_ipc: remove redundant test Pierre-Louis Bossart
2022-05-20 21:17 ` [PATCH 07/16] ASoC: Intel: atom: sst_ipc: remove useless initializations Pierre-Louis Bossart
2022-05-20 21:17 ` [PATCH 08/16] ASoC: Intel: atom: controls: " Pierre-Louis Bossart
2022-05-20 21:17 ` [PATCH 09/16] ASoC: Intel: boards: reset acpi_chan_package Pierre-Louis Bossart
2022-05-20 21:17 ` [PATCH 10/16] ASoC: Intel: sof_pcm512x: remove unnecessary init Pierre-Louis Bossart
2022-05-20 21:17 ` [PATCH 11/16] ASoC: mediatek: mt8195: simplify error handling Pierre-Louis Bossart
2022-05-20 21:17 ` [PATCH 12/16] ASoC: qcom: q6dsp: q6adm: remove useless initializations Pierre-Louis Bossart
2022-05-20 21:17 ` [PATCH 13/16] ASoC: qcom: q6dsp: remove spurious space Pierre-Louis Bossart
2022-05-20 21:17 ` [PATCH 14/16] ASoC: rockchip: simplify error handling Pierre-Louis Bossart
2022-05-20 21:17 ` [PATCH 15/16] ASoC: samsung: snow: " Pierre-Louis Bossart
2022-05-20 21:17 ` [PATCH 16/16] ASoC: meson: remove useless initialization Pierre-Louis Bossart
2022-06-07 10:55 ` [PATCH 00/16] ASoC: trivial changes for cppcheck warnings Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.