diff options
author | Brian Norris <computersforpeace@gmail.com> | 2011-06-07 19:01:54 -0400 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@intel.com> | 2011-09-11 08:02:05 -0400 |
commit | 0870066d7e6c85bbe37741137e4c4731501a98e0 (patch) | |
tree | 20b0c0e2417b222d18d0027e067dc55489db0940 /drivers/mtd/onenand | |
parent | 96166056076af59d40e5b5aec5b09611c74cc911 (diff) |
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.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/mtd/onenand/onenand_bbt.c b/drivers/mtd/onenand/onenand_bbt.c index fc2c16a0fd1..09a7d1fb511 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) | |||
188 | len = this->chipsize >> (this->erase_shift + 2); | 188 | len = this->chipsize >> (this->erase_shift + 2); |
189 | /* Allocate memory (2bit per block) and clear the memory bad block table */ | 189 | /* Allocate memory (2bit per block) and clear the memory bad block table */ |
190 | bbm->bbt = kzalloc(len, GFP_KERNEL); | 190 | bbm->bbt = kzalloc(len, GFP_KERNEL); |
191 | if (!bbm->bbt) { | 191 | if (!bbm->bbt) |
192 | printk(KERN_ERR "onenand_scan_bbt: Out of memory\n"); | ||
193 | return -ENOMEM; | 192 | return -ENOMEM; |
194 | } | ||
195 | 193 | ||
196 | /* Set the bad block position */ | 194 | /* Set the bad block position */ |
197 | bbm->badblockpos = ONENAND_BADBLOCK_POS; | 195 | bbm->badblockpos = ONENAND_BADBLOCK_POS; |