[FIX] random return value in register_lcd()
authorVyacheslav Cherkashin <v.cherkashin@samsung.com>
Thu, 14 Nov 2013 10:23:09 +0000 (14:23 +0400)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Fri, 15 Nov 2013 09:05:49 +0000 (09:05 +0000)
Change-Id: If30786176ba026240912c46d347665767b70d0fa
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
energy/lcd/lcd_base.c

index bb99eac..3c7d7b4 100644 (file)
@@ -219,7 +219,7 @@ u64 get_energy_lcd(struct lcd_ops *ops)
 
 int register_lcd(struct lcd_ops *ops)
 {
-       int ret;
+       int ret = 0;
 
        if (ops->check() == 0) {
                printk("error checking %s\n", ops->name);