diff options
author | Salah Triki <salah.triki@acm.org> | 2016-07-23 08:36:41 -0400 |
---|---|---|
committer | Luis de Bethencourt <luisbg@osg.samsung.com> | 2016-10-08 05:01:10 -0400 |
commit | e808792784e5a4f4532e660697385d3d370f8803 (patch) | |
tree | 62c8c1830b81072fe1ade201e3280d0596e8c528 /fs/befs/linuxvfs.c | |
parent | c625426fb61a64427f4e12b83a6710161fd9489b (diff) |
fs/befs/linuxvfs.c: remove useless befs_error
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>
Diffstat (limited to 'fs/befs/linuxvfs.c')
-rw-r--r-- | fs/befs/linuxvfs.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/befs/linuxvfs.c b/fs/befs/linuxvfs.c index 5b47b0fbffdd..04541f37fe83 100644 --- a/fs/befs/linuxvfs.c +++ b/fs/befs/linuxvfs.c | |||
@@ -524,7 +524,6 @@ befs_utf2nls(struct super_block *sb, const char *in, | |||
524 | 524 | ||
525 | *out = result = kmalloc(maxlen, GFP_NOFS); | 525 | *out = result = kmalloc(maxlen, GFP_NOFS); |
526 | if (!*out) { | 526 | if (!*out) { |
527 | befs_error(sb, "%s cannot allocate memory", __func__); | ||
528 | *out_len = 0; | 527 | *out_len = 0; |
529 | return -ENOMEM; | 528 | return -ENOMEM; |
530 | } | 529 | } |
@@ -604,7 +603,6 @@ befs_nls2utf(struct super_block *sb, const char *in, | |||
604 | 603 | ||
605 | *out = result = kmalloc(maxlen, GFP_NOFS); | 604 | *out = result = kmalloc(maxlen, GFP_NOFS); |
606 | if (!*out) { | 605 | if (!*out) { |
607 | befs_error(sb, "%s cannot allocate memory", __func__); | ||
608 | *out_len = 0; | 606 | *out_len = 0; |
609 | return -ENOMEM; | 607 | return -ENOMEM; |
610 | } | 608 | } |