Skip to contentSkip to conversation

drivers/video/aty: Clean up return paths in

PATCH New Tobias Klauser 1 participant 1 message Jun 29, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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()

---
 drivers/video/aty/atyfb_base.c |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)
drivers/video/aty/atyfb_base.c +3 -6
index 22e7206..1a93fce 100644
@@ -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_BACKLIGHT
 	mutex_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