aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/onenand/onenand_base.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2014-02-06 01:15:38 -0500
committerBrian Norris <computersforpeace@gmail.com>2014-03-11 01:42:24 -0400
commite4eec195f3e8106362da72c9d94dd6fcf598ddb7 (patch)
tree1a9392f67e059917c428effeb2f9a425353f7b2a /drivers/mtd/onenand/onenand_base.c
parent54f5a57e266318d72f84fda95805099986a7e201 (diff)
mtd: onenand: 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/onenand/onenand_base.c')
-rw-r--r--drivers/mtd/onenand/onenand_base.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/mtd/onenand/onenand_base.c b/drivers/mtd/onenand/onenand_base.c
index 531ccbcdc04b..e886d7af868f 100644
--- a/drivers/mtd/onenand/onenand_base.c
+++ b/drivers/mtd/onenand/onenand_base.c
@@ -3994,11 +3994,8 @@ int onenand_scan(struct mtd_info *mtd, int maxchips)
3994 /* Allocate buffers, if necessary */ 3994 /* Allocate buffers, if necessary */
3995 if (!this->page_buf) { 3995 if (!this->page_buf) {
3996 this->page_buf = kzalloc(mtd->writesize, GFP_KERNEL); 3996 this->page_buf = kzalloc(mtd->writesize, GFP_KERNEL);
3997 if (!this->page_buf) { 3997 if (!this->page_buf)
3998 printk(KERN_ERR "%s: Can't allocate page_buf\n",
3999 __func__);
4000 return -ENOMEM; 3998 return -ENOMEM;
4001 }
4002#ifdef CONFIG_MTD_ONENAND_VERIFY_WRITE 3999#ifdef CONFIG_MTD_ONENAND_VERIFY_WRITE
4003 this->verify_buf = kzalloc(mtd->writesize, GFP_KERNEL); 4000 this->verify_buf = kzalloc(mtd->writesize, GFP_KERNEL);
4004 if (!this->verify_buf) { 4001 if (!this->verify_buf) {
@@ -4011,8 +4008,6 @@ int onenand_scan(struct mtd_info *mtd, int maxchips)
4011 if (!this->oob_buf) { 4008 if (!this->oob_buf) {
4012 this->oob_buf = kzalloc(mtd->oobsize, GFP_KERNEL); 4009 this->oob_buf = kzalloc(mtd->oobsize, GFP_KERNEL);
4013 if (!this->oob_buf) { 4010 if (!this->oob_buf) {
4014 printk(KERN_ERR "%s: Can't allocate oob_buf\n",
4015 __func__);
4016 if (this->options & ONENAND_PAGEBUF_ALLOC) { 4011 if (this->options & ONENAND_PAGEBUF_ALLOC) {
4017 this->options &= ~ONENAND_PAGEBUF_ALLOC; 4012 this->options &= ~ONENAND_PAGEBUF_ALLOC;
4018 kfree(this->page_buf); 4013 kfree(this->page_buf);