Browse Source

mtd: pmc551: Remove unnecessary OOM messages

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>
Jingoo Han 11 years ago
parent
commit
c00cb1b774
1 changed files with 1 additions and 6 deletions
  1. 1 6
      drivers/mtd/devices/pmc551.c

+ 1 - 6
drivers/mtd/devices/pmc551.c

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