summaryrefslogtreecommitdiff
path: root/drivers/video/fbdev
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2018-03-28 17:34:27 +0300
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>2018-03-28 17:34:27 +0300
commitb78f8ca82b5f3ee4bf6b3979624ef76fa3de7611 (patch)
tree139595ad2cfcf9e6c41636a9be481fb3327d64bb /drivers/video/fbdev
parentf9815f945aff2204b8afbbb9d2182024eb44a194 (diff)
downloadlinux-b78f8ca82b5f3ee4bf6b3979624ef76fa3de7611.tar.xz
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: Markus 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: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Diffstat (limited to 'drivers/video/fbdev')
-rw-r--r--drivers/video/fbdev/stifb.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/video/fbdev/stifb.c b/drivers/video/fbdev/stifb.c
index 511a594889af..dec8efb4f256 100644
--- a/drivers/video/fbdev/stifb.c
+++ b/drivers/video/fbdev/stifb.c
@@ -1126,10 +1126,8 @@ static int __init stifb_init_fb(struct sti_struct *sti, int bpp_pref)
int bpp, xres, yres;
fb = kzalloc(sizeof(*fb), GFP_ATOMIC);
- if (!fb) {
- printk(KERN_ERR "stifb: Could not allocate stifb structure\n");
+ if (!fb)
return -ENOMEM;
- }
info = &fb->info;