summaryrefslogtreecommitdiffstats
path: root/sound/soc/tegra/tegra_sgtl5000.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/tegra/tegra_sgtl5000.c')
-rw-r--r--sound/soc/tegra/tegra_sgtl5000.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/soc/tegra/tegra_sgtl5000.c b/sound/soc/tegra/tegra_sgtl5000.c
index 4bbab098f50b..6dda01f69983 100644
--- a/sound/soc/tegra/tegra_sgtl5000.c
+++ b/sound/soc/tegra/tegra_sgtl5000.c
@@ -120,10 +120,8 @@ static int tegra_sgtl5000_driver_probe(struct platform_device *pdev)
machine = devm_kzalloc(&pdev->dev, sizeof(struct tegra_sgtl5000),
GFP_KERNEL);
- if (!machine) {
- dev_err(&pdev->dev, "Can't allocate tegra_sgtl5000 struct\n");
+ if (!machine)
return -ENOMEM;
- }
card->dev = &pdev->dev;
platform_set_drvdata(pdev, card);