Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3af04d5c authored by Markus Elfring's avatar Markus Elfring Committed by Bartlomiej Zolnierkiewicz
Browse files

video/console/sticore: Delete an error message for a failed memory allocation...


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: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Cc: Helge Deller <deller@gmx.de>
Cc: "James E. J. Bottomley" <jejb@parisc-linux.org>
Signed-off-by: default avatarBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
parent d6f58616
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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);