summaryrefslogtreecommitdiff
path: root/drivers/video/fbdev/pmag-aa-fb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/fbdev/pmag-aa-fb.c')
-rw-r--r--drivers/video/fbdev/pmag-aa-fb.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/video/fbdev/pmag-aa-fb.c b/drivers/video/fbdev/pmag-aa-fb.c
index ca7e9390d1e7..d1e78ce3a9c2 100644
--- a/drivers/video/fbdev/pmag-aa-fb.c
+++ b/drivers/video/fbdev/pmag-aa-fb.c
@@ -165,10 +165,8 @@ static int pmagaafb_probe(struct device *dev)
int err;
info = framebuffer_alloc(sizeof(struct aafb_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);