mtd: atmel_nand: Remove unnecessary OOM messages
authorJingoo Han <jg1.han@samsung.com>
Thu, 26 Dec 2013 03:00:16 +0000 (12:00 +0900)
committerBrian Norris <computersforpeace@gmail.com>
Fri, 3 Jan 2014 19:22:28 +0000 (11:22 -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>
Acked-by: Josh Wu <josh.wu@atmel.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/atmel_nand.c

index 59f08c44abdbc9be920ea62974d19bcdc7884889..e633c4454bad417a320bfe8b9f7bfc3f53c0c0a7 100644 (file)
@@ -1961,10 +1961,8 @@ static int atmel_nand_probe(struct platform_device *pdev)
 
        /* Allocate memory for the device structure (and zero it) */
        host = devm_kzalloc(&pdev->dev, sizeof(*host), GFP_KERNEL);
-       if (!host) {
-               printk(KERN_ERR "atmel_nand: failed to allocate device structure.\n");
+       if (!host)
                return -ENOMEM;
-       }
 
        res = platform_driver_register(&atmel_nand_nfc_driver);
        if (res)