]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mmc: sdhi: error message on ENOMEM is superfluous
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Tue, 19 Jan 2016 10:42:22 +0000 (11:42 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 29 Feb 2016 10:03:04 +0000 (11:03 +0100)
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>
drivers/mmc/host/sh_mobile_sdhi.c

index 61671f3fa09a1144e6f964e134a35a094564aa51..5a10fb3c01a1dddd8bd8553193934c926d47d323 100644 (file)
@@ -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;