drivers/video/aty: Clean up return paths in
Subsystems (2)
PATCH 1/1 drivers/video/aty: Clean up return paths in
This patch also adds appropriate KERN_* constants to printk() calls in aty_bl_init()
Signed-off-by Tobias Klauser <[email protected]>
--- drivers/video/aty/atyfb_base.c | 9 +++------ 1 files changed, 3 insertions(+), 6 deletions(-)
drivers/video/aty/atyfb_base.c +3 -6
@@ -2201,8 +2201,8 @@ #endif bd =backlight_device_register (name, par, &aty_bl_data);if (IS_ERR (bd)) { info->bl_dev =NULL ; -printk ("aty: Backlight registration failed\n" ); - goto error; +printk (KERN_ERR "aty: Backlight registration failed\n" ); +return ; }mutex_lock (&info->bl_mutex);
@@ -2225,11 +2225,8 @@ #ifdef CONFIG_PMAC_BACKLIGHTmutex_unlock (&pmac_backlight_mutex);#endif -printk ("aty: Backlight initialized (%s)\n" , name); - -return ; +printk (KERN_INFO "aty: Backlight initialized (%s)\n" , name); -error:return ; }
Signature · 6 lines
1.4.0 _______________________________________________ Kernel-janitors mailing list [email protected] https://lists.osdl.org/mailman/listinfo/kernel-janitors