video: fbdev: don't print error message on framebuffer_alloc() failure
[linux-block.git] / drivers / video / fbdev / s3fb.c
index d63f23e26f7d7cc7130b9c0f311259805b0734cf..be16c349c10f827e0bc0d0f2caa16c294b082df0 100644 (file)
@@ -1128,10 +1128,8 @@ static int s3_pci_probe(struct pci_dev *dev, const struct pci_device_id *id)
 
        /* Allocate and fill driver data structure */
        info = framebuffer_alloc(sizeof(struct s3fb_info), &(dev->dev));
-       if (!info) {
-               dev_err(&(dev->dev), "cannot allocate memory\n");
+       if (!info)
                return -ENOMEM;
-       }
 
        par = info->par;
        mutex_init(&par->open_lock);