diff options
author | Codrut Grosu <codrut.cristian.grosu@gmail.com> | 2017-02-25 14:18:08 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-03-07 15:50:49 +0300 |
commit | e2c187a689b4a717024ba90c67a6ecd8ff36a23e (patch) | |
tree | 29f373181c903d0d295cc870829a6acb9c282cc5 /sound/soc/tegra/tegra30_ahub.c | |
parent | c1ae3cfa0e89fa1a7ecc4c99031f5e9ae99d9201 (diff) | |
download | linux-e2c187a689b4a717024ba90c67a6ecd8ff36a23e.tar.xz |
ASoC: tegra: Remove unnecessary 'out of memory' message
This was reported by checkpatch.pl
Signed-off-by: Codrut GROSU <codrut.cristian.grosu@gmail.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/tegra/tegra30_ahub.c')
-rw-r--r-- | sound/soc/tegra/tegra30_ahub.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/soc/tegra/tegra30_ahub.c b/sound/soc/tegra/tegra30_ahub.c index fef3b9a21a66..d7494c0e9053 100644 --- a/sound/soc/tegra/tegra30_ahub.c +++ b/sound/soc/tegra/tegra30_ahub.c @@ -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; |