From: Markus Elfring <[email protected]>
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 <[email protected]>
---
 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

Reply via email to