diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2018-03-28 16:34:29 +0200 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> | 2018-03-28 16:34:29 +0200 |
commit | 3af04d5c459485ce3f4e18c6331515092ca85be4 (patch) | |
tree | b266b9069d8aa00a85737a342701beb5b4c7aa77 /drivers/video/console | |
parent | d6f586163f86e91c34ccca72e2d9374bc77d990a (diff) | |
download | linux-3af04d5c459485ce3f4e18c6331515092ca85be4.tar.gz linux-3af04d5c459485ce3f4e18c6331515092ca85be4.tar.bz2 linux-3af04d5c459485ce3f4e18c6331515092ca85be4.zip |
video/console/sticore: Delete an error message for a failed memory allocation in sti_try_rom_generic()
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>
Diffstat (limited to 'drivers/video/console')
-rw-r--r-- | drivers/video/console/sticore.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/video/console/sticore.c b/drivers/video/console/sticore.c index d1d3796773aa..08b822656846 100644 --- a/drivers/video/console/sticore.c +++ b/drivers/video/console/sticore.c @@ -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); |