Эх сурвалжийг харах

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>
Wolfram Sang 9 жил өмнө
parent
commit
2bf8ab6ba2

+ 1 - 3
drivers/mmc/host/sh_mobile_sdhi.c

@@ -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) {
-		dev_err(&pdev->dev, "kzalloc failed\n");
+	if (!priv)
 		return -ENOMEM;
 		return -ENOMEM;
-	}
 
 
 	mmc_data = &priv->mmc_data;
 	mmc_data = &priv->mmc_data;
 	dma_priv = &priv->dma_priv;
 	dma_priv = &priv->dma_priv;