summaryrefslogtreecommitdiff
path: root/drivers/video/fbdev/pmag-ba-fb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/fbdev/pmag-ba-fb.c')
-rw-r--r--drivers/video/fbdev/pmag-ba-fb.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/video/fbdev/pmag-ba-fb.c b/drivers/video/fbdev/pmag-ba-fb.c
index 3b9249449ea6..56b912bb28de 100644
--- a/drivers/video/fbdev/pmag-ba-fb.c
+++ b/drivers/video/fbdev/pmag-ba-fb.c
@@ -150,10 +150,8 @@ static int pmagbafb_probe(struct device *dev)
int err;
info = framebuffer_alloc(sizeof(struct pmagbafb_par), dev);
- if (!info) {
- printk(KERN_ERR "%s: Cannot allocate memory\n", dev_name(dev));
+ if (!info)
return -ENOMEM;
- }
par = info->par;
dev_set_drvdata(dev, info);