ASoC: SPEAr spdif_out: Remove redundant variable
Return directly and remove the intermediate local variable. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Mark Brown <broonie@linaro.org>
This commit is contained in:
@@ -280,7 +280,6 @@ static int spdif_out_probe(struct platform_device *pdev)
|
|||||||
struct spdif_out_dev *host;
|
struct spdif_out_dev *host;
|
||||||
struct spear_spdif_platform_data *pdata;
|
struct spear_spdif_platform_data *pdata;
|
||||||
struct resource *res;
|
struct resource *res;
|
||||||
int ret;
|
|
||||||
|
|
||||||
host = devm_kzalloc(&pdev->dev, sizeof(*host), GFP_KERNEL);
|
host = devm_kzalloc(&pdev->dev, sizeof(*host), GFP_KERNEL);
|
||||||
if (!host) {
|
if (!host) {
|
||||||
@@ -307,9 +306,8 @@ static int spdif_out_probe(struct platform_device *pdev)
|
|||||||
|
|
||||||
dev_set_drvdata(&pdev->dev, host);
|
dev_set_drvdata(&pdev->dev, host);
|
||||||
|
|
||||||
ret = devm_snd_soc_register_component(&pdev->dev, &spdif_out_component,
|
return devm_snd_soc_register_component(&pdev->dev, &spdif_out_component,
|
||||||
&spdif_out_dai, 1);
|
&spdif_out_dai, 1);
|
||||||
return ret;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_PM
|
#ifdef CONFIG_PM
|
||||||
|
Reference in New Issue
Block a user