summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/onenand
diff options
context:
space:
mode:
authorBrian Norris <computersforpeace@gmail.com>2011-06-07 16:01:54 -0700
committerArtem Bityutskiy <artem.bityutskiy@intel.com>2011-09-11 15:02:05 +0300
commit0870066d7e6c85bbe37741137e4c4731501a98e0 (patch)
tree20b0c0e2417b222d18d0027e067dc55489db0940 /drivers/mtd/onenand
parent96166056076af59d40e5b5aec5b09611c74cc911 (diff)
downloadop-kernel-dev-0870066d7e6c85bbe37741137e4c4731501a98e0.zip
op-kernel-dev-0870066d7e6c85bbe37741137e4c4731501a98e0.tar.gz
mtd: remove printk's for [kv][mz]alloc failures
When a memory allocation fails, the kernel will print out a backtrace automatically. These print statements are unnecessary. Signed-off-by: Brian Norris <computersforpeace@gmail.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'drivers/mtd/onenand')
-rw-r--r--drivers/mtd/onenand/onenand_bbt.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/mtd/onenand/onenand_bbt.c b/drivers/mtd/onenand/onenand_bbt.c
index fc2c16a..09a7d1f 100644
--- a/drivers/mtd/onenand/onenand_bbt.c
+++ b/drivers/mtd/onenand/onenand_bbt.c
@@ -188,10 +188,8 @@ int onenand_scan_bbt(struct mtd_info *mtd, struct nand_bbt_descr *bd)
len = this->chipsize >> (this->erase_shift + 2);
/* Allocate memory (2bit per block) and clear the memory bad block table */
bbm->bbt = kzalloc(len, GFP_KERNEL);
- if (!bbm->bbt) {
- printk(KERN_ERR "onenand_scan_bbt: Out of memory\n");
+ if (!bbm->bbt)
return -ENOMEM;
- }
/* Set the bad block position */
bbm->badblockpos = ONENAND_BADBLOCK_POS;
OpenPOWER on IntegriCloud