mtd: pmc551: Remove unnecessary OOM messages
authorJingoo Han <jg1.han@samsung.com>
Thu, 6 Feb 2014 06:11:09 +0000 (15:11 +0900)
committerBrian Norris <computersforpeace@gmail.com>
Tue, 11 Mar 2014 05:42:24 +0000 (22:42 -0700)
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/devices/pmc551.c

index 0c51b988e1f8880af884995540cee3c5ac91dfca..f02603e1bfeb974ca08a101ae8bb58927c1d1f81 100644 (file)
@@ -725,16 +725,11 @@ static int __init init_pmc551(void)
                }
 
                mtd = kzalloc(sizeof(struct mtd_info), GFP_KERNEL);
-               if (!mtd) {
-                       printk(KERN_NOTICE "pmc551: Cannot allocate new MTD "
-                               "device.\n");
+               if (!mtd)
                        break;
-               }
 
                priv = kzalloc(sizeof(struct mypriv), GFP_KERNEL);
                if (!priv) {
-                       printk(KERN_NOTICE "pmc551: Cannot allocate new MTD "
-                               "device.\n");
                        kfree(mtd);
                        break;
                }