Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e2c187a6 authored by Codrut Grosu's avatar Codrut Grosu Committed by Mark Brown
Browse files

ASoC: tegra: Remove unnecessary 'out of memory' message



This was reported by checkpatch.pl

Signed-off-by: default avatarCodrut GROSU <codrut.cristian.grosu@gmail.com>
Acked-by: default avatarThierry Reding <treding@nvidia.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent c1ae3cfa
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -318,7 +318,6 @@ static int tegra20_ac97_platform_probe(struct platform_device *pdev)
	ac97 = devm_kzalloc(&pdev->dev, sizeof(struct tegra20_ac97),
			    GFP_KERNEL);
	if (!ac97) {
		dev_err(&pdev->dev, "Can't allocate tegra20_ac97\n");
		ret = -ENOMEM;
		goto err;
	}
+0 −1
Original line number Diff line number Diff line
@@ -142,7 +142,6 @@ static int tegra20_das_probe(struct platform_device *pdev)

	das = devm_kzalloc(&pdev->dev, sizeof(struct tegra20_das), GFP_KERNEL);
	if (!das) {
		dev_err(&pdev->dev, "Can't allocate tegra20_das\n");
		ret = -ENOMEM;
		goto err;
	}
+0 −1
Original line number Diff line number Diff line
@@ -345,7 +345,6 @@ static int tegra20_i2s_platform_probe(struct platform_device *pdev)

	i2s = devm_kzalloc(&pdev->dev, sizeof(struct tegra20_i2s), GFP_KERNEL);
	if (!i2s) {
		dev_err(&pdev->dev, "Can't allocate tegra20_i2s\n");
		ret = -ENOMEM;
		goto err;
	}
+2 −3
Original line number Diff line number Diff line
@@ -271,10 +271,9 @@ static int tegra20_spdif_platform_probe(struct platform_device *pdev)

	spdif = devm_kzalloc(&pdev->dev, sizeof(struct tegra20_spdif),
			     GFP_KERNEL);
	if (!spdif) {
		dev_err(&pdev->dev, "Can't allocate tegra20_spdif\n");
	if (!spdif)
		return -ENOMEM;
	}

	dev_set_drvdata(&pdev->dev, spdif);

	spdif->clk_spdif_out = devm_clk_get(&pdev->dev, "spdif_out");
+1 −3
Original line number Diff line number Diff line
@@ -560,10 +560,8 @@ static int tegra30_ahub_probe(struct platform_device *pdev)

	ahub = devm_kzalloc(&pdev->dev, sizeof(struct tegra30_ahub),
			    GFP_KERNEL);
	if (!ahub) {
		dev_err(&pdev->dev, "Can't allocate tegra30_ahub\n");
	if (!ahub)
		return -ENOMEM;
	}
	dev_set_drvdata(&pdev->dev, ahub);

	ahub->soc_data = soc_data;
Loading