ASoC: wcd934x: remove unneeded semicolon
Subsystems (3)
PATCH 1/1 ASoC: wcd934x: remove unneeded semicolon
Fix the following coccicheck warning:
sound/soc/codecs/wcd934x.c:3621:2-3: Unneeded semicolon sound/soc/codecs/wcd934x.c:4270:2-3: Unneeded semicolon sound/soc/codecs/wcd934x.c:4018:2-3: Unneeded semicolon sound/soc/codecs/wcd934x.c:4043:2-3: Unneeded semicolon sound/soc/codecs/wcd934x.c:3804:2-3: Unneeded semicolon sound/soc/codecs/wcd934x.c:3866:2-3: Unneeded semicolon sound/soc/codecs/wcd934x.c:3596:2-3: Unneeded semicolon sound/soc/codecs/wcd934x.c:3542:2-3: Unneeded semicolon sound/soc/codecs/wcd934x.c:3673:2-3: Unneeded semicolon sound/soc/codecs/wcd934x.c:3723:2-3: Unneeded semicolon sound/soc/codecs/wcd934x.c:2492:2-3: Unneeded semicolon sound/soc/codecs/wcd934x.c:1790:3-4: Unneeded semicolon sound/soc/codecs/wcd934x.c:1806:3-4: Unneeded semicolon sound/soc/codecs/wcd934x.c:1812:2-3: Unneeded semicolon
--- sound/soc/codecs/wcd934x.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-)
sound/soc/codecs/wcd934x.c +14 -14
@@ -1787,7 +1787,7 @@ static int wcd934x_hw_params(struct snd_pcm_substream *substream, params_rate(params));return -EINVAL ; - }; + } ret =wcd934x_set_decimator_rate (dai, tx_fs_rate,params_rate (params));
@@ -1803,13 +1803,13 @@ static int wcd934x_hw_params(struct snd_pcm_substream *substream,dev_err (wcd->dev,"Invalid format 0x%x\n" ,params_width (params));return -EINVAL ; - }; + }break ;default :dev_err (wcd->dev,"Invalid stream type %d\n" , substream->stream);return -EINVAL ; - }; + } wcd->dai[dai->id].sconfig.rate =params_rate (params);wcd934x_slim_set_hw_params (wcd, &wcd->dai[dai->id], substream->stream);
@@ -2489,7 +2489,7 @@ static int wcd934x_compander_set(struct snd_kcontrol *kc,break ;default :break ; - }; + }return 0 ; }
@@ -3539,7 +3539,7 @@ static int wcd934x_codec_enable_mix_path(struct snd_soc_dapm_widget *w, val += offset_val;snd_soc_component_write (comp, gain_reg, val);break ; - }; + }return 0 ; }
@@ -3593,7 +3593,7 @@ static int wcd934x_codec_enable_main_path(struct snd_soc_dapm_widget *w,snd_soc_component_write (comp, gain_reg,snd_soc_component_read32 (comp, gain_reg));break ; - }; + }return 0 ; }
@@ -3618,7 +3618,7 @@ static int wcd934x_codec_ear_dac_event(struct snd_soc_dapm_widget *w,wcd_clsh_ctrl_set_state (wcd->clsh_ctrl,WCD_CLSH_EVENT_POST_PA ,WCD_CLSH_STATE_EAR ,CLS_H_NORMAL );break ; - }; + }return 0 ; }
@@ -3670,7 +3670,7 @@ static int wcd934x_codec_hphl_dac_event(struct snd_soc_dapm_widget *w,break ;default :break ; - }; + }return 0 ; }
@@ -3720,7 +3720,7 @@ static int wcd934x_codec_hphr_dac_event(struct snd_soc_dapm_widget *w,break ;default :break ; - }; + }return 0 ; }
@@ -3801,7 +3801,7 @@ static int wcd934x_codec_enable_hphl_pa(struct snd_soc_dapm_widget *w,*/ usleep_range (20000 ,20100 );break ; - }; + }return 0 ; }
@@ -3863,7 +3863,7 @@ static int wcd934x_codec_enable_hphr_pa(struct snd_soc_dapm_widget *w,*/ usleep_range (20000 ,20100 );break ; - }; + }return 0 ; }
@@ -4015,7 +4015,7 @@ static int wcd934x_codec_enable_dmic(struct snd_soc_dapm_widget *w,dev_err (comp->dev,"%s: Invalid DMIC Selection\n" , __func__);return -EINVAL ; - }; + }switch (event) {case SND_SOC_DAPM_PRE_PMU :
@@ -4040,7 +4040,7 @@ static int wcd934x_codec_enable_dmic(struct snd_soc_dapm_widget *w,snd_soc_component_update_bits (comp, dmic_clk_reg, dmic_clk_en,0 );break ; - }; + }return 0 ; }
@@ -4267,7 +4267,7 @@ static int wcd934x_codec_enable_dec(struct snd_soc_dapm_widget *w,WCD934X_DEC_PWR_LVL_MASK , WCD934X_DEC_PWR_LVL_DF);break ; - }; + } out:kfree (wname);return ret;
Signature · 1 line
2.21.1
Mark Brown
maintainerQuoted 17 lines · Jason Yan
Fix the following coccicheck warning:
sound/soc/codecs/wcd934x.c:3621:2-3: Unneeded semicolon sound/soc/codecs/wcd934x.c:4270:2-3: Unneeded semicolon sound/soc/codecs/wcd934x.c:4018:2-3: Unneeded semicolon sound/soc/codecs/wcd934x.c:4043:2-3: Unneeded semicolon sound/soc/codecs/wcd934x.c:3804:2-3: Unneeded semicolon sound/soc/codecs/wcd934x.c:3866:2-3: Unneeded semicolon sound/soc/codecs/wcd934x.c:3596:2-3: Unneeded semicolon sound/soc/codecs/wcd934x.c:3542:2-3: Unneeded semicolon sound/soc/codecs/wcd934x.c:3673:2-3: Unneeded semicolon sound/soc/codecs/wcd934x.c:3723:2-3: Unneeded semicolon sound/soc/codecs/wcd934x.c:2492:2-3: Unneeded semicolon sound/soc/codecs/wcd934x.c:1790:3-4: Unneeded semicolon sound/soc/codecs/wcd934x.c:1806:3-4: Unneeded semicolon sound/soc/codecs/wcd934x.c:1812:2-3: Unneeded semicolon
Quoted 1 line
[...]
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.7
Thanks!
[1/1] ASoC: wcd934x: remove unneeded semicolon
commit: b40efd0f254356556443355bc87c9a5e6e3d9dee
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