Merge tag 'fbdev-v4.17' of git://github.com/bzolnier/linux
[sfrench/cifs-2.6.git] / drivers / video / fbdev / stifb.c
index 3c2e4cabc08f8f6d006f15d447f367bdb369978a..045e8afe398be35866adb64d774c0ebf0dd9834c 100644 (file)
@@ -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");
-               return -ENODEV;
-       }
+       if (!fb)
+               return -ENOMEM;
        
        info = &fb->info;