Commit 4cae37fa authored by Takashi Iwai's avatar Takashi Iwai

ASoC: Remove dead code and labels

Remove the dead code and labels "card_err" in the error paths of
some codec drivers.
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 330f28f6
...@@ -387,11 +387,6 @@ static int ad1836_probe(struct platform_device *pdev) ...@@ -387,11 +387,6 @@ static int ad1836_probe(struct platform_device *pdev)
snd_soc_dapm_add_routes(codec, audio_paths, ARRAY_SIZE(audio_paths)); snd_soc_dapm_add_routes(codec, audio_paths, ARRAY_SIZE(audio_paths));
snd_soc_dapm_new_widgets(codec); snd_soc_dapm_new_widgets(codec);
return ret;
card_err:
snd_soc_free_pcms(socdev);
snd_soc_dapm_free(socdev);
pcm_err: pcm_err:
return ret; return ret;
} }
......
...@@ -596,11 +596,6 @@ static int ad1938_probe(struct platform_device *pdev) ...@@ -596,11 +596,6 @@ static int ad1938_probe(struct platform_device *pdev)
ad1938_set_bias_level(codec, SND_SOC_BIAS_STANDBY); ad1938_set_bias_level(codec, SND_SOC_BIAS_STANDBY);
return ret;
card_err:
snd_soc_free_pcms(socdev);
snd_soc_dapm_free(socdev);
pcm_err: pcm_err:
return ret; return ret;
} }
......
...@@ -355,11 +355,6 @@ static int cx20442_codec_probe(struct platform_device *pdev) ...@@ -355,11 +355,6 @@ static int cx20442_codec_probe(struct platform_device *pdev)
cx20442_add_widgets(codec); cx20442_add_widgets(codec);
return ret;
card_err:
snd_soc_free_pcms(socdev);
snd_soc_dapm_free(socdev);
pcm_err: pcm_err:
return ret; return ret;
} }
......
...@@ -1400,11 +1400,6 @@ static int wm8400_probe(struct platform_device *pdev) ...@@ -1400,11 +1400,6 @@ static int wm8400_probe(struct platform_device *pdev)
wm8400_add_controls(codec); wm8400_add_controls(codec);
wm8400_add_widgets(codec); wm8400_add_widgets(codec);
return ret;
card_err:
snd_soc_free_pcms(socdev);
snd_soc_dapm_free(socdev);
pcm_err: pcm_err:
return ret; return ret;
} }
......
...@@ -1353,11 +1353,6 @@ static int wm8900_probe(struct platform_device *pdev) ...@@ -1353,11 +1353,6 @@ static int wm8900_probe(struct platform_device *pdev)
ARRAY_SIZE(wm8900_snd_controls)); ARRAY_SIZE(wm8900_snd_controls));
wm8900_add_widgets(codec); wm8900_add_widgets(codec);
return ret;
card_err:
snd_soc_free_pcms(socdev);
snd_soc_dapm_free(socdev);
pcm_err: pcm_err:
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment