lkml.org 
[lkml]   [2016]   [May]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH V3 4/4] fs: befs: Remove useless befs_error
    Date
    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
    \
     
     \ /
      Last update: 2016-05-26 02:41    [W:3.284 / U:0.020 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site