aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/devices/pmc551.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2014-02-06 15:11:09 +0900
committerBrian Norris <computersforpeace@gmail.com>2014-03-10 22:42:24 -0700
commitc00cb1b7748aa0e6d2efeb8f4486d788ae61765e (patch)
treef2088d45551266923ef63beb72903f3b9a2a5a0b /drivers/mtd/devices/pmc551.c
parentmtd: spear_smi: Remove unnecessary OOM messages (diff)
downloadlinux-dev-c00cb1b7748aa0e6d2efeb8f4486d788ae61765e.tar.xz
linux-dev-c00cb1b7748aa0e6d2efeb8f4486d788ae61765e.zip
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>
Diffstat (limited to 'drivers/mtd/devices/pmc551.c')
-rw-r--r--drivers/mtd/devices/pmc551.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/mtd/devices/pmc551.c b/drivers/mtd/devices/pmc551.c
index 0c51b988e1f8..f02603e1bfeb 100644
--- a/drivers/mtd/devices/pmc551.c
+++ b/drivers/mtd/devices/pmc551.c
@@ -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;
}