summaryrefslogtreecommitdiffstats
path: root/drivers/mmc
diff options
context:
space:
mode:
authorWolfram Sang <wsa+renesas@sang-engineering.com>2016-01-19 11:42:22 +0100
committerUlf Hansson <ulf.hansson@linaro.org>2016-02-29 11:03:04 +0100
commit2bf8ab6ba23483a49d29a726d047f3be81ccc952 (patch)
treed150584810317b0487e554a7d58ae47f51b27243 /drivers/mmc
parentff741cfde98bd867eb4c9477bc9ba0df3507eed8 (diff)
downloadop-kernel-dev-2bf8ab6ba23483a49d29a726d047f3be81ccc952.zip
op-kernel-dev-2bf8ab6ba23483a49d29a726d047f3be81ccc952.tar.gz
mmc: sdhi: error message on ENOMEM is superfluous
We will get a full dump anyhow. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/host/sh_mobile_sdhi.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/mmc/host/sh_mobile_sdhi.c b/drivers/mmc/host/sh_mobile_sdhi.c
index 61671f3..5a10fb3 100644
--- a/drivers/mmc/host/sh_mobile_sdhi.c
+++ b/drivers/mmc/host/sh_mobile_sdhi.c
@@ -214,10 +214,8 @@ static int sh_mobile_sdhi_probe(struct platform_device *pdev)
return -EINVAL;
priv = devm_kzalloc(&pdev->dev, sizeof(struct sh_mobile_sdhi), GFP_KERNEL);
- if (priv == NULL) {
- dev_err(&pdev->dev, "kzalloc failed\n");
+ if (!priv)
return -ENOMEM;
- }
mmc_data = &priv->mmc_data;
dma_priv = &priv->dma_priv;
OpenPOWER on IntegriCloud