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

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

video/fbdev/stifb: Delete an error message for a failed memory allocation in stifb_init_fb()



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>
Cc: Rolf Eike Beer <eike-kernel@sf-tec.de>
Signed-off-by: default avatarBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
parent f9815f94
Loading
Loading
Loading
Loading
+1 −3
Original line number Original line Diff line number Diff line
@@ -1126,10 +1126,8 @@ static int __init stifb_init_fb(struct sti_struct *sti, int bpp_pref)
	int bpp, xres, yres;
	int bpp, xres, yres;


	fb = kzalloc(sizeof(*fb), GFP_ATOMIC);
	fb = kzalloc(sizeof(*fb), GFP_ATOMIC);
	if (!fb) {
	if (!fb)
		printk(KERN_ERR "stifb: Could not allocate stifb structure\n");
		return -ENOMEM;
		return -ENOMEM;
	}
	
	
	info = &fb->info;
	info = &fb->info;