[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <3de4d388d98bbb570462a5eb8e64623e17fb5d74.1464221265.git.salah.triki@acm.org>
Date: Thu, 26 May 2016 01:13:44 +0100
From: Salah Triki <salah.triki@....org>
To: akpm@...ux-foundation.org, joe@...ches.com
Cc: Salah Triki <salah.triki@....org>, linux-kernel@...r.kernel.org
Subject: [PATCH V3 4/4] fs: befs: Remove useless befs_error
Remove befs_error since when kmalloc fails there is a generic out of
memory and stack dump.
Signed-off-by: Salah Triki <salah.triki@....org>
---
fs/befs/linuxvfs.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/fs/befs/linuxvfs.c b/fs/befs/linuxvfs.c
index 5b47b0f..04541f3 100644
--- a/fs/befs/linuxvfs.c
+++ b/fs/befs/linuxvfs.c
@@ -524,7 +524,6 @@ befs_utf2nls(struct super_block *sb, const char *in,
*out = result = kmalloc(maxlen, GFP_NOFS);
if (!*out) {
- befs_error(sb, "%s cannot allocate memory", __func__);
*out_len = 0;
return -ENOMEM;
}
@@ -604,7 +603,6 @@ befs_nls2utf(struct super_block *sb, const char *in,
*out = result = kmalloc(maxlen, GFP_NOFS);
if (!*out) {
- befs_error(sb, "%s cannot allocate memory", __func__);
*out_len = 0;
return -ENOMEM;
}
--
1.9.1
Powered by blists - more mailing lists