]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
fs: befs: remove useless pr_err in befs_init_inodecache()
authorSalah Triki <salah.triki@acm.org>
Sat, 23 Jul 2016 12:36:41 +0000 (22:36 +1000)
committerLuis de Bethencourt <luisbg@osg.samsung.com>
Sat, 8 Oct 2016 09:01:10 +0000 (10:01 +0100)
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 <salah.triki@acm.org>
fs/befs/linuxvfs.c

index 04541f37fe833c25fdfc83d82cb469bc0c0cac98..c734f21fd5812fdb0df2b139783fe046d7362e5f 100644 (file)
@@ -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;
        }