|
@@ -297,8 +297,6 @@ static int wm8940_add_widgets(struct snd_soc_codec *codec)
|
|
|
if (ret)
|
|
|
goto error_ret;
|
|
|
ret = snd_soc_dapm_add_routes(dapm, audio_map, ARRAY_SIZE(audio_map));
|
|
|
- if (ret)
|
|
|
- goto error_ret;
|
|
|
|
|
|
error_ret:
|
|
|
return ret;
|
|
@@ -683,8 +681,6 @@ static int wm8940_resume(struct snd_soc_codec *codec)
|
|
|
}
|
|
|
}
|
|
|
ret = wm8940_set_bias_level(codec, SND_SOC_BIAS_STANDBY);
|
|
|
- if (ret)
|
|
|
- goto error_ret;
|
|
|
|
|
|
error_ret:
|
|
|
return ret;
|
|
@@ -730,9 +726,6 @@ static int wm8940_probe(struct snd_soc_codec *codec)
|
|
|
if (ret)
|
|
|
return ret;
|
|
|
ret = wm8940_add_widgets(codec);
|
|
|
- if (ret)
|
|
|
- return ret;
|
|
|
-
|
|
|
return ret;
|
|
|
}
|
|
|
|