From: Mark Brown Date: Wed, 29 Feb 2012 15:39:56 +0000 (+0000) Subject: ASoC: wm_hubs: Bomb out if we can't read back the DC servo result X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e778ba07edd03bc5000e22bc72113e06a7ded694;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git ASoC: wm_hubs: Bomb out if we can't read back the DC servo result Should have no practical impact but it's safer than trying to soldier on. Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/wm_hubs.c b/sound/soc/codecs/wm_hubs.c index 82b7e9dece2c..7cffdd4b70fb 100644 --- a/sound/soc/codecs/wm_hubs.c +++ b/sound/soc/codecs/wm_hubs.c @@ -172,7 +172,7 @@ static void calibrate_dc_servo(struct snd_soc_codec *codec) break; default: WARN(1, "Unknown DCS readback method\n"); - break; + return; } dev_dbg(codec->dev, "DCS input: %x %x\n", reg_l, reg_r);