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>
This commit is contained in:

committed by
Artem Bityutskiy

parent
9616605607
commit
0870066d7e
@@ -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;
|
||||
|
Reference in New Issue
Block a user