commit | c08f1cb627c43d7b0a1d04a5a0efaf385f0391ad | [log] [tgz] |
---|---|---|
author | Salah Triki <[email protected]> | Sat Jul 23 22:36:41 2016 +1000 |
committer | Luis de Bethencourt <[email protected]> | Sat Oct 08 10:01:10 2016 +0100 |
tree | bf354020dda0cbf07e134b89f42c5433dda3fa91 | |
parent | e808792784e5a4f4532e660697385d3d370f8803 [diff] |
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.org Signed-off-by: Salah Triki <[email protected]>
diff --git a/fs/befs/linuxvfs.c b/fs/befs/linuxvfs.c index 04541f3..c734f21 100644 --- a/fs/befs/linuxvfs.c +++ b/fs/befs/linuxvfs.c
@@ -436,10 +436,9 @@ 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 @@ *out = result = kmalloc(maxlen, GFP_NOFS); if (!*out) { - *out_len = 0; return -ENOMEM; }