diff --git a/drivers/video/console/sticore.c b/drivers/video/console/sticore.c index d1d3796773aa2d4c77716f3ba5e2fcebf0ae5653..08b822656846cca9072d40f40ea090635c75f1ab 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);