diff options
author | Takashi Iwai <tiwai@suse.de> | 2009-11-07 04:18:22 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-11-07 04:18:22 -0500 |
commit | 4cae37fa98f4d50778161ec033122444e3c10a01 (patch) | |
tree | bf093bb4ccbd74817fa34f16b9e094d6340484ee | |
parent | 330f28f691e9b349e34adcaf82b273cf061bb491 (diff) |
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: Takashi Iwai <tiwai@suse.de>
-rw-r--r-- | sound/soc/codecs/ad1836.c | 5 | ||||
-rw-r--r-- | sound/soc/codecs/ad1938.c | 5 | ||||
-rw-r--r-- | sound/soc/codecs/cx20442.c | 5 | ||||
-rw-r--r-- | sound/soc/codecs/wm8400.c | 5 | ||||
-rw-r--r-- | sound/soc/codecs/wm8900.c | 5 |
5 files changed, 0 insertions, 25 deletions
diff --git a/sound/soc/codecs/ad1836.c b/sound/soc/codecs/ad1836.c index 2e360c243075..b4be96decf32 100644 --- a/sound/soc/codecs/ad1836.c +++ b/sound/soc/codecs/ad1836.c | |||
@@ -387,11 +387,6 @@ static int ad1836_probe(struct platform_device *pdev) | |||
387 | snd_soc_dapm_add_routes(codec, audio_paths, ARRAY_SIZE(audio_paths)); | 387 | snd_soc_dapm_add_routes(codec, audio_paths, ARRAY_SIZE(audio_paths)); |
388 | snd_soc_dapm_new_widgets(codec); | 388 | snd_soc_dapm_new_widgets(codec); |
389 | 389 | ||
390 | return ret; | ||
391 | |||
392 | card_err: | ||
393 | snd_soc_free_pcms(socdev); | ||
394 | snd_soc_dapm_free(socdev); | ||
395 | pcm_err: | 390 | pcm_err: |
396 | return ret; | 391 | return ret; |
397 | } | 392 | } |
diff --git a/sound/soc/codecs/ad1938.c b/sound/soc/codecs/ad1938.c index 09c008ad1476..3b2222a0c808 100644 --- a/sound/soc/codecs/ad1938.c +++ b/sound/soc/codecs/ad1938.c | |||
@@ -596,11 +596,6 @@ static int ad1938_probe(struct platform_device *pdev) | |||
596 | 596 | ||
597 | ad1938_set_bias_level(codec, SND_SOC_BIAS_STANDBY); | 597 | ad1938_set_bias_level(codec, SND_SOC_BIAS_STANDBY); |
598 | 598 | ||
599 | return ret; | ||
600 | |||
601 | card_err: | ||
602 | snd_soc_free_pcms(socdev); | ||
603 | snd_soc_dapm_free(socdev); | ||
604 | pcm_err: | 599 | pcm_err: |
605 | return ret; | 600 | return ret; |
606 | } | 601 | } |
diff --git a/sound/soc/codecs/cx20442.c b/sound/soc/codecs/cx20442.c index d7f9bf18b72e..dda751c885cb 100644 --- a/sound/soc/codecs/cx20442.c +++ b/sound/soc/codecs/cx20442.c | |||
@@ -355,11 +355,6 @@ static int cx20442_codec_probe(struct platform_device *pdev) | |||
355 | 355 | ||
356 | cx20442_add_widgets(codec); | 356 | cx20442_add_widgets(codec); |
357 | 357 | ||
358 | return ret; | ||
359 | |||
360 | card_err: | ||
361 | snd_soc_free_pcms(socdev); | ||
362 | snd_soc_dapm_free(socdev); | ||
363 | pcm_err: | 358 | pcm_err: |
364 | return ret; | 359 | return ret; |
365 | } | 360 | } |
diff --git a/sound/soc/codecs/wm8400.c b/sound/soc/codecs/wm8400.c index 0e30997c8db0..584af68af22a 100644 --- a/sound/soc/codecs/wm8400.c +++ b/sound/soc/codecs/wm8400.c | |||
@@ -1400,11 +1400,6 @@ static int wm8400_probe(struct platform_device *pdev) | |||
1400 | wm8400_add_controls(codec); | 1400 | wm8400_add_controls(codec); |
1401 | wm8400_add_widgets(codec); | 1401 | wm8400_add_widgets(codec); |
1402 | 1402 | ||
1403 | return ret; | ||
1404 | |||
1405 | card_err: | ||
1406 | snd_soc_free_pcms(socdev); | ||
1407 | snd_soc_dapm_free(socdev); | ||
1408 | pcm_err: | 1403 | pcm_err: |
1409 | return ret; | 1404 | return ret; |
1410 | } | 1405 | } |
diff --git a/sound/soc/codecs/wm8900.c b/sound/soc/codecs/wm8900.c index 0d185cb6418d..85f67dbe211d 100644 --- a/sound/soc/codecs/wm8900.c +++ b/sound/soc/codecs/wm8900.c | |||
@@ -1353,11 +1353,6 @@ static int wm8900_probe(struct platform_device *pdev) | |||
1353 | ARRAY_SIZE(wm8900_snd_controls)); | 1353 | ARRAY_SIZE(wm8900_snd_controls)); |
1354 | wm8900_add_widgets(codec); | 1354 | wm8900_add_widgets(codec); |
1355 | 1355 | ||
1356 | return ret; | ||
1357 | |||
1358 | card_err: | ||
1359 | snd_soc_free_pcms(socdev); | ||
1360 | snd_soc_dapm_free(socdev); | ||
1361 | pcm_err: | 1356 | pcm_err: |
1362 | return ret; | 1357 | return ret; |
1363 | } | 1358 | } |