]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mtd: plat_nand: Remove unnecessary OOM messages
authorJingoo Han <jg1.han@samsung.com>
Fri, 3 Jan 2014 02:17:29 +0000 (11:17 +0900)
committerBrian Norris <computersforpeace@gmail.com>
Fri, 3 Jan 2014 19:29:01 +0000 (11:29 -0800)
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>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/plat_nand.c

index d00e3a7c6bd813f13360f74bc8400ca4f8e75310..4ebed7273bc00bf65acd936cacbfb3ceaf62cb56 100644 (file)
@@ -55,10 +55,8 @@ static int plat_nand_probe(struct platform_device *pdev)
        /* Allocate memory for the device structure (and zero it) */
        data = devm_kzalloc(&pdev->dev, sizeof(struct plat_nand_data),
                            GFP_KERNEL);
-       if (!data) {
-               dev_err(&pdev->dev, "failed to allocate device structure.\n");
+       if (!data)
                return -ENOMEM;
-       }
 
        data->io_base = devm_ioremap_resource(&pdev->dev, res);
        if (IS_ERR(data->io_base))