Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1621574
| From | John Stultz <john.stultz@linaro.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 2/3] ASoC: hisilicon: Address style nit to use break in final default of switch statement |
| Date | 2017-04-11 21:20 +0200 |
| Message-ID | <tv9uy-2HL-17@gated-at.bofh.it> (permalink) |
| References | <tv9ux-2HL-15@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Mark Brown suggested a style change to use break in the final default of a switch statement, so this patch addresses that. Cc: Zhangfei Gao <zhangfei.gao@linaro.org> Cc: Liam Girdwood <lgirdwood@gmail.com> Cc: Mark Brown <broonie@kernel.org> Cc: Jaroslav Kysela <perex@perex.cz> Cc: Wei Xu <xuwei5@hisilicon.com> Cc: Rob Herring <robh+dt@kernel.org> Cc: Andy Green <andy@warmcat.com> Cc: Dave Long <dave.long@linaro.org> Cc: Guodong Xu <guodong.xu@linaro.org> Signed-off-by: John Stultz <john.stultz@linaro.org> --- sound/soc/hisilicon/hi6210-i2s.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/hisilicon/hi6210-i2s.c b/sound/soc/hisilicon/hi6210-i2s.c index 1909bfc..27553dc 100644 --- a/sound/soc/hisilicon/hi6210-i2s.c +++ b/sound/soc/hisilicon/hi6210-i2s.c @@ -324,6 +324,7 @@ static int hi6210_i2s_hw_params(struct snd_pcm_substream *substream, default: i2s->bits = 16; dma_data->addr_width = 2; + break; } i2s->rate = params_rate(params); i2s->channels = params_channels(params); @@ -442,6 +443,7 @@ static int hi6210_i2s_hw_params(struct snd_pcm_substream *substream, val = hi6210_read_reg(i2s, HII2S_I2S_CFG); val &= ~HII2S_I2S_CFG__S2_FRAME_MODE; hi6210_write_reg(i2s, HII2S_I2S_CFG, val); + break; } /* clear loopback, set signed type and word length */ -- 2.7.4
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH 1/3] ASoC: hisilicon: Add error returns even for cases that shouldn't happen. John Stultz <john.stultz@linaro.org> - 2017-04-11 21:20 +0200 [PATCH 3/3] ASoC: hisilicon: Use devm_snd_soc_register_component John Stultz <john.stultz@linaro.org> - 2017-04-11 21:20 +0200 [PATCH 2/3] ASoC: hisilicon: Address style nit to use break in final default of switch statement John Stultz <john.stultz@linaro.org> - 2017-04-11 21:20 +0200
csiph-web