Messages in this thread Patch in this message | | | From | Salah Triki <> | Subject | [PATCH V3 4/4] fs: befs: Remove useless befs_error | Date | Thu, 26 May 2016 01:13:44 +0100 |
| |
Remove befs_error since when kmalloc fails there is a generic out of memory and stack dump.
Signed-off-by: Salah Triki <salah.triki@acm.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
| |