Commit c08f1cb6 authored by Salah Triki's avatar Salah Triki Committed by Luis de Bethencourt

fs: befs: remove useless pr_err in befs_init_inodecache()

Remove pr_err since kmem_cache_create log error and dump stack.

Link: http://lkml.kernel.org/r/e6d03cbc9542495dc6174b59e32fcd41c1393cfc.1464226521.git.salah.triki@acm.orgSigned-off-by: default avatarSalah Triki <salah.triki@acm.org>
parent e8087927
......@@ -436,10 +436,9 @@ befs_init_inodecache(void)
0, (SLAB_RECLAIM_ACCOUNT|
SLAB_MEM_SPREAD|SLAB_ACCOUNT),
init_once);
if (befs_inode_cachep == NULL) {
pr_err("%s: Couldn't initialize inode slabcache\n", __func__);
if (befs_inode_cachep == NULL)
return -ENOMEM;
}
return 0;
}
......@@ -524,7 +523,6 @@ befs_utf2nls(struct super_block *sb, const char *in,
*out = result = kmalloc(maxlen, GFP_NOFS);
if (!*out) {
*out_len = 0;
return -ENOMEM;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment