lkml.org 
[lkml]   [2016]   [Sep]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Subject[PATCH 2/7] cfag12864b: Delete an error message for a failed kmalloc_array() call
    From
    Date
    From: Markus Elfring <elfring@users.sourceforge.net>
    Date: Sat, 10 Sep 2016 14:54:05 +0200

    Omit an extra message for a memory allocation failure in this function.

    Link: http://events.linuxfoundation.org/sites/events/files/slides/LCJ16-Refactor_Strings-WSang_0.pdf

    Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
    ---
    drivers/auxdisplay/cfag12864b.c | 3 ---
    1 file changed, 3 deletions(-)

    diff --git a/drivers/auxdisplay/cfag12864b.c b/drivers/auxdisplay/cfag12864b.c
    index 88260f4..fd07fad 100644
    --- a/drivers/auxdisplay/cfag12864b.c
    +++ b/drivers/auxdisplay/cfag12864b.c
    @@ -351,9 +351,6 @@ static int __init cfag12864b_init(void)
    sizeof(*cfag12864b_cache),
    GFP_KERNEL);
    if (cfag12864b_cache == NULL) {
    - printk(KERN_ERR CFAG12864B_NAME ": ERROR: "
    - "can't alloc cache buffer (%i bytes)\n",
    - CFAG12864B_SIZE);
    ret = -ENOMEM;
    goto bufferalloced;
    }
    --
    2.10.0
    \
     
     \ /
      Last update: 2016-09-17 09:59    [W:4.022 / U:0.332 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site