ALSA: remove unneeded break

A break is not needed if it is preceded by a return, goto
or break

Signed-off-by: Tom Rix <trix@redhat.com>
Acked-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20201019164857.27223-1-trix@redhat.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Tom Rix 2020-10-19 09:48:57 -07:00 committed by Takashi Iwai
parent f7b6603c66
commit ad26098970
7 changed files with 0 additions and 20 deletions

View File

@ -468,7 +468,6 @@ static int snd_rme32_capture_getrate(struct rme32 * rme32, int *is_adat)
return 32000; return 32000;
default: default:
return -1; return -1;
break;
} }
else else
switch (n) { /* supporting the CS8412 */ switch (n) { /* supporting the CS8412 */

View File

@ -2286,7 +2286,6 @@ static int hdspm_get_wc_sample_rate(struct hdspm *hdspm)
case AIO: case AIO:
status = hdspm_read(hdspm, HDSPM_RD_STATUS_1); status = hdspm_read(hdspm, HDSPM_RD_STATUS_1);
return (status >> 16) & 0xF; return (status >> 16) & 0xF;
break;
case AES32: case AES32:
status = hdspm_read(hdspm, HDSPM_statusRegister); status = hdspm_read(hdspm, HDSPM_statusRegister);
return (status >> HDSPM_AES32_wcFreq_bit) & 0xF; return (status >> HDSPM_AES32_wcFreq_bit) & 0xF;
@ -2312,7 +2311,6 @@ static int hdspm_get_tco_sample_rate(struct hdspm *hdspm)
case AIO: case AIO:
status = hdspm_read(hdspm, HDSPM_RD_STATUS_1); status = hdspm_read(hdspm, HDSPM_RD_STATUS_1);
return (status >> 20) & 0xF; return (status >> 20) & 0xF;
break;
case AES32: case AES32:
status = hdspm_read(hdspm, HDSPM_statusRegister); status = hdspm_read(hdspm, HDSPM_statusRegister);
return (status >> 1) & 0xF; return (status >> 1) & 0xF;
@ -2338,7 +2336,6 @@ static int hdspm_get_sync_in_sample_rate(struct hdspm *hdspm)
case AIO: case AIO:
status = hdspm_read(hdspm, HDSPM_RD_STATUS_2); status = hdspm_read(hdspm, HDSPM_RD_STATUS_2);
return (status >> 12) & 0xF; return (status >> 12) & 0xF;
break;
default: default:
break; break;
} }
@ -2358,7 +2355,6 @@ static int hdspm_get_aes_sample_rate(struct hdspm *hdspm, int index)
case AES32: case AES32:
timecode = hdspm_read(hdspm, HDSPM_timecodeRegister); timecode = hdspm_read(hdspm, HDSPM_timecodeRegister);
return (timecode >> (4*index)) & 0xF; return (timecode >> (4*index)) & 0xF;
break;
default: default:
break; break;
} }
@ -3845,7 +3841,6 @@ static int hdspm_wc_sync_check(struct hdspm *hdspm)
return 1; return 1;
} }
return 0; return 0;
break;
case MADI: case MADI:
status2 = hdspm_read(hdspm, HDSPM_statusRegister2); status2 = hdspm_read(hdspm, HDSPM_statusRegister2);
@ -3856,7 +3851,6 @@ static int hdspm_wc_sync_check(struct hdspm *hdspm)
return 1; return 1;
} }
return 0; return 0;
break;
case RayDAT: case RayDAT:
case AIO: case AIO:
@ -3868,8 +3862,6 @@ static int hdspm_wc_sync_check(struct hdspm *hdspm)
return 1; return 1;
return 0; return 0;
break;
case MADIface: case MADIface:
break; break;
} }

View File

@ -732,34 +732,27 @@ static inline int rme9652_spdif_sample_rate(struct snd_rme9652 *s)
switch (rme9652_decode_spdif_rate(rate_bits)) { switch (rme9652_decode_spdif_rate(rate_bits)) {
case 0x7: case 0x7:
return 32000; return 32000;
break;
case 0x6: case 0x6:
return 44100; return 44100;
break;
case 0x5: case 0x5:
return 48000; return 48000;
break;
case 0x4: case 0x4:
return 88200; return 88200;
break;
case 0x3: case 0x3:
return 96000; return 96000;
break;
case 0x0: case 0x0:
return 64000; return 64000;
break;
default: default:
dev_err(s->card->dev, dev_err(s->card->dev,
"%s: unknown S/PDIF input rate (bits = 0x%x)\n", "%s: unknown S/PDIF input rate (bits = 0x%x)\n",
s->card_name, rate_bits); s->card_name, rate_bits);
return 0; return 0;
break;
} }
} }

View File

@ -480,7 +480,6 @@ static int _wcd_clsh_ctrl_set_state(struct wcd_clsh_ctrl *ctrl, int req_state,
case WCD_CLSH_STATE_HPHR: case WCD_CLSH_STATE_HPHR:
wcd_clsh_state_hph_r(ctrl, req_state, is_enable, mode); wcd_clsh_state_hph_r(ctrl, req_state, is_enable, mode);
break; break;
break;
case WCD_CLSH_STATE_LO: case WCD_CLSH_STATE_LO:
wcd_clsh_state_lo(ctrl, req_state, is_enable, mode); wcd_clsh_state_lo(ctrl, req_state, is_enable, mode);
break; break;

View File

@ -311,7 +311,6 @@ static int wl1273_startup(struct snd_pcm_substream *substream,
break; break;
default: default:
return -EINVAL; return -EINVAL;
break;
} }
return 0; return 0;

View File

@ -502,7 +502,6 @@ static int skl_pcm_trigger(struct snd_pcm_substream *substream, int cmd,
if (ret < 0) if (ret < 0)
return ret; return ret;
return skl_run_pipe(skl, mconfig->pipe); return skl_run_pipe(skl, mconfig->pipe);
break;
case SNDRV_PCM_TRIGGER_PAUSE_PUSH: case SNDRV_PCM_TRIGGER_PAUSE_PUSH:
case SNDRV_PCM_TRIGGER_SUSPEND: case SNDRV_PCM_TRIGGER_SUSPEND:

View File

@ -2385,7 +2385,6 @@ static int davinci_mcasp_probe(struct platform_device *pdev)
dev_err(&pdev->dev, "No DMA controller found (%d)\n", ret); dev_err(&pdev->dev, "No DMA controller found (%d)\n", ret);
case -EPROBE_DEFER: case -EPROBE_DEFER:
goto err; goto err;
break;
} }
if (ret) { if (ret) {