From: Wolfram Sang Date: Tue, 19 Jan 2016 10:42:22 +0000 (+0100) Subject: mmc: sdhi: error message on ENOMEM is superfluous X-Git-Tag: next-20160210~47^2~19 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=422a8c6d479e152a7db085395336c24c77c6d3d1;p=karo-tx-linux.git mmc: sdhi: error message on ENOMEM is superfluous We will get a full dump anyhow. Signed-off-by: Wolfram Sang Signed-off-by: Ulf Hansson --- diff --git a/drivers/mmc/host/sh_mobile_sdhi.c b/drivers/mmc/host/sh_mobile_sdhi.c index 61671f3fa09a..5a10fb3c01a1 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;