summaryrefslogtreecommitdiff
path: root/drivers/mtd/lpddr/lpddr_cmds.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2014-02-06 10:14:33 +0400
committerBrian Norris <computersforpeace@gmail.com>2014-03-11 09:42:24 +0400
commit54f5a57e266318d72f84fda95805099986a7e201 (patch)
tree9f68c0ecc038355c8f2773b92d71f1d9f67c7a03 /drivers/mtd/lpddr/lpddr_cmds.c
parente61e4f40b1f3a34fa370f7fda1bff6d66032516d (diff)
downloadlinux-54f5a57e266318d72f84fda95805099986a7e201.tar.xz
mtd: lpddr: 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/lpddr/lpddr_cmds.c')
-rw-r--r--drivers/mtd/lpddr/lpddr_cmds.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/mtd/lpddr/lpddr_cmds.c b/drivers/mtd/lpddr/lpddr_cmds.c
index d38b6460d505..018c75faadb3 100644
--- a/drivers/mtd/lpddr/lpddr_cmds.c
+++ b/drivers/mtd/lpddr/lpddr_cmds.c
@@ -55,10 +55,8 @@ struct mtd_info *lpddr_cmdset(struct map_info *map)
int i, j;
mtd = kzalloc(sizeof(*mtd), GFP_KERNEL);
- if (!mtd) {
- printk(KERN_ERR "Failed to allocate memory for MTD device\n");
+ if (!mtd)
return NULL;
- }
mtd->priv = map;
mtd->type = MTD_NORFLASH;