Message ID | f41ab46f-3e9b-a340-3178-44e37a9127d0@users.sourceforge.net (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/drivers/video/fbdev/aty/radeon_backlight.c b/drivers/video/fbdev/aty/radeon_backlight.c index 301d6d6aeead..ce5b22d710b3 100644 --- a/drivers/video/fbdev/aty/radeon_backlight.c +++ b/drivers/video/fbdev/aty/radeon_backlight.c @@ -144,10 +144,8 @@ void radeonfb_bl_init(struct radeonfb_info *rinfo) #endif pdata = kmalloc(sizeof(struct radeon_bl_privdata), GFP_KERNEL); - if (!pdata) { - printk("radeonfb: Memory allocation failed\n"); + if (!pdata) goto error; - } snprintf(name, sizeof(name), "radeonbl%d", rinfo->info->node);