mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-01 06:33:07 +00:00
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>
This commit is contained in:
parent
d6f586163f
commit
3af04d5c45
1 changed files with 1 additions and 3 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue