diff options
author | Brian Norris <computersforpeace@gmail.com> | 2011-06-07 16:01:54 -0700 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@intel.com> | 2011-09-11 15:02:05 +0300 |
commit | 0870066d7e6c85bbe37741137e4c4731501a98e0 (patch) | |
tree | 20b0c0e2417b222d18d0027e067dc55489db0940 /drivers/mtd/nftlcore.c | |
parent | 96166056076af59d40e5b5aec5b09611c74cc911 (diff) | |
download | op-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/nftlcore.c')
-rw-r--r-- | drivers/mtd/nftlcore.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/mtd/nftlcore.c b/drivers/mtd/nftlcore.c index b155666..f3b3239 100644 --- a/drivers/mtd/nftlcore.c +++ b/drivers/mtd/nftlcore.c @@ -67,10 +67,8 @@ static void nftl_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd) nftl = kzalloc(sizeof(struct NFTLrecord), GFP_KERNEL); - if (!nftl) { - printk(KERN_WARNING "NFTL: out of memory for data structures\n"); + if (!nftl) return; - } nftl->mbd.mtd = mtd; nftl->mbd.devnum = -1; |