Commit 2bf8ab6b authored by Wolfram Sang's avatar Wolfram Sang Committed by Ulf Hansson

mmc: sdhi: error message on ENOMEM is superfluous

We will get a full dump anyhow.
Signed-off-by: default avatarWolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent ff741cfd
...@@ -214,10 +214,8 @@ static int sh_mobile_sdhi_probe(struct platform_device *pdev) ...@@ -214,10 +214,8 @@ static int sh_mobile_sdhi_probe(struct platform_device *pdev)
return -EINVAL; return -EINVAL;
priv = devm_kzalloc(&pdev->dev, sizeof(struct sh_mobile_sdhi), GFP_KERNEL); priv = devm_kzalloc(&pdev->dev, sizeof(struct sh_mobile_sdhi), GFP_KERNEL);
if (priv == NULL) { if (!priv)
dev_err(&pdev->dev, "kzalloc failed\n");
return -ENOMEM; return -ENOMEM;
}
mmc_data = &priv->mmc_data; mmc_data = &priv->mmc_data;
dma_priv = &priv->dma_priv; dma_priv = &priv->dma_priv;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment