[alsa-devel] [patch] ASoC: wm8994: missing break in wm8994_aif3_hw_params()

Dan Carpenter dan.carpenter at oracle.com
Tue Apr 30 09:24:41 CEST 2013


The missing break here means that we always return early and the
function is a no-op.

Signed-off-by: Dan Carpenter <dan.carpenter at oracle.com>
---

diff --git a/sound/soc/codecs/wm8994.c b/sound/soc/codecs/wm8994.c
index 14094f5..1eb152c 100644
--- a/sound/soc/codecs/wm8994.c
+++ b/sound/soc/codecs/wm8994.c
@@ -2882,6 +2882,7 @@ static int wm8994_aif3_hw_params(struct snd_pcm_substream *substream,
 		default:
 			return 0;
 		}
+		break;
 	default:
 		return 0;
 	}


More information about the Alsa-devel mailing list