aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/inftlcore.c
diff options
context:
space:
mode:
authorBrian Norris <computersforpeace@gmail.com>2011-06-07 19:01:54 -0400
committerArtem Bityutskiy <artem.bityutskiy@intel.com>2011-09-11 08:02:05 -0400
commit0870066d7e6c85bbe37741137e4c4731501a98e0 (patch)
tree20b0c0e2417b222d18d0027e067dc55489db0940 /drivers/mtd/inftlcore.c
parent96166056076af59d40e5b5aec5b09611c74cc911 (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/inftlcore.c')
-rw-r--r--drivers/mtd/inftlcore.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/mtd/inftlcore.c b/drivers/mtd/inftlcore.c
index d7592e67d048..c9a31e6faab2 100644
--- a/drivers/mtd/inftlcore.c
+++ b/drivers/mtd/inftlcore.c
@@ -67,10 +67,8 @@ static void inftl_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd)
67 67
68 inftl = kzalloc(sizeof(*inftl), GFP_KERNEL); 68 inftl = kzalloc(sizeof(*inftl), GFP_KERNEL);
69 69
70 if (!inftl) { 70 if (!inftl)
71 printk(KERN_WARNING "INFTL: Out of memory for data structures\n");
72 return; 71 return;
73 }
74 72
75 inftl->mbd.mtd = mtd; 73 inftl->mbd.mtd = mtd;
76 inftl->mbd.devnum = -1; 74 inftl->mbd.devnum = -1;