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

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
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -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_new_widgets(codec);

	return ret;

card_err:
	snd_soc_free_pcms(socdev);
	snd_soc_dapm_free(socdev);
pcm_err:
	return ret;
}
+0 −5
Original line number Diff line number Diff line
@@ -596,11 +596,6 @@ static int ad1938_probe(struct platform_device *pdev)

	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:
	return ret;
}
+0 −5
Original line number Diff line number Diff line
@@ -355,11 +355,6 @@ static int cx20442_codec_probe(struct platform_device *pdev)

	cx20442_add_widgets(codec);

	return ret;

card_err:
	snd_soc_free_pcms(socdev);
	snd_soc_dapm_free(socdev);
pcm_err:
	return ret;
}
+0 −5
Original line number Diff line number Diff line
@@ -1400,11 +1400,6 @@ static int wm8400_probe(struct platform_device *pdev)
	wm8400_add_controls(codec);
	wm8400_add_widgets(codec);

	return ret;

card_err:
	snd_soc_free_pcms(socdev);
	snd_soc_dapm_free(socdev);
pcm_err:
	return ret;
}
+0 −5
Original line number Diff line number Diff line
@@ -1353,11 +1353,6 @@ static int wm8900_probe(struct platform_device *pdev)
				ARRAY_SIZE(wm8900_snd_controls));
	wm8900_add_widgets(codec);

	return ret;

card_err:
	snd_soc_free_pcms(socdev);
	snd_soc_dapm_free(socdev);
pcm_err:
	return ret;
}