]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
video/console/sticore: Delete an error message for a failed memory allocation in...
authorMarkus Elfring <elfring@users.sourceforge.net>
Wed, 28 Mar 2018 14:34:29 +0000 (16:34 +0200)
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Wed, 28 Mar 2018 14:34:29 +0000 (16:34 +0200)
Omit an extra message for a memory allocation failure in this function.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Cc: Helge Deller <deller@gmx.de>
Cc: "James E. J. Bottomley" <jejb@parisc-linux.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
drivers/video/console/sticore.c

index d1d3796773aa2d4c77716f3ba5e2fcebf0ae5653..08b822656846cca9072d40f40ea090635c75f1ab 100644 (file)
@@ -827,10 +827,8 @@ static struct sti_struct *sti_try_rom_generic(unsigned long address,
        }
        
        sti = kzalloc(sizeof(*sti), GFP_KERNEL);
-       if (!sti) {
-               printk(KERN_ERR "Not enough memory !\n");
+       if (!sti)
                return NULL;
-       }
 
        spin_lock_init(&sti->lock);