Skip to content

Commit

Permalink
fs/befs/linuxvfs.c: remove useless befs_error
Browse files Browse the repository at this point in the history
Remove befs_error since when kmalloc fails there is a generic out of
memory and stack dump.

Link: http://lkml.kernel.org/r/3de4d388d98bbb570462a5eb8e64623e17fb5d74.1464226521.git.salah.triki@acm.org
Signed-off-by: Salah Triki <salah.triki@acm.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
  • Loading branch information
salah-triki authored and luisbg committed Oct 8, 2016
1 parent c625426 commit e808792
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions fs/befs/linuxvfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit e808792

Please sign in to comment.