diff options
| -rw-r--r-- | sound/soc/codecs/wm8903.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm8903.c b/sound/soc/codecs/wm8903.c index 0b5bea37e3dc..b1f5cf77a876 100644 --- a/sound/soc/codecs/wm8903.c +++ b/sound/soc/codecs/wm8903.c | |||
| @@ -392,6 +392,7 @@ static int wm8903_output_event(struct snd_soc_dapm_widget *w, | |||
| 392 | break; | 392 | break; |
| 393 | default: | 393 | default: |
| 394 | BUG(); | 394 | BUG(); |
| 395 | return -EINVAL; /* Spurious warning from some compilers */ | ||
| 395 | } | 396 | } |
| 396 | 397 | ||
| 397 | switch (w->shift) { | 398 | switch (w->shift) { |
| @@ -403,6 +404,7 @@ static int wm8903_output_event(struct snd_soc_dapm_widget *w, | |||
| 403 | break; | 404 | break; |
| 404 | default: | 405 | default: |
| 405 | BUG(); | 406 | BUG(); |
| 407 | return -EINVAL; /* Spurious warning from some compilers */ | ||
| 406 | } | 408 | } |
| 407 | 409 | ||
| 408 | if (event & SND_SOC_DAPM_PRE_PMU) { | 410 | if (event & SND_SOC_DAPM_PRE_PMU) { |
