Patchwork [15/23] mtd: davinci_nand: Remove unnecessary OOM messages

login
register
mail settings
Submitter Jingoo Han
Date Dec. 26, 2013, 3:13 a.m.
Message ID <009101cf01e8$8532c090$8f9841b0$%han@samsung.com>
Download mbox | patch
Permalink /patch/305176/
State Accepted
Commit 006692319bf0362f053a9e8a56a1416611aaa116
Headers show

Comments

Jingoo Han - Dec. 26, 2013, 3:13 a.m.
The site-specific OOM messages are unnecessary, because they
duplicate the MM subsystem generic OOM message.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
 drivers/mtd/nand/davinci_nand.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

Patch

diff --git a/drivers/mtd/nand/davinci_nand.c b/drivers/mtd/nand/davinci_nand.c
index 0104d26..a4989ec 100644
--- a/drivers/mtd/nand/davinci_nand.c
+++ b/drivers/mtd/nand/davinci_nand.c
@@ -619,10 +619,8 @@  static int nand_davinci_probe(struct platform_device *pdev)
 		return -ENODEV;
 
 	info = devm_kzalloc(&pdev->dev, sizeof(*info), GFP_KERNEL);
-	if (!info) {
-		dev_err(&pdev->dev, "unable to allocate memory\n");
+	if (!info)
 		return -ENOMEM;
-	}
 
 	platform_set_drvdata(pdev, info);