]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
rtc: max77686: add missing variable initialization
authorJingoo Han <jg1.han@samsung.com>
Wed, 20 Feb 2013 02:15:40 +0000 (13:15 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 05:53:23 +0000 (16:53 +1100)
Fixed build warning as below:

drivers/rtc/rtc-max77686.c: In function 'max77686_rtc_update':
drivers/rtc/rtc-max77686.c:147:6: warning: 'data' may be used uninitialized in this function [-Wuninitialized]

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Cc: Chiwoong Byun <woong.byun@samsung.com>
Cc: Jonghwa Lee <jonghwa3.lee@samsung.com>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Myugnjoo Ham <myungjoo.ham@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/rtc/rtc-max77686.c

index 2da0855b742fa05dc034fd93d0771de1f77a5ab5..fe6c5f4683eaa6d89c73c2bd6e6aef9575328df0 100644 (file)
@@ -133,7 +133,7 @@ static int max77686_rtc_update(struct max77686_rtc_info *info,
        enum MAX77686_RTC_OP op)
 {
        int ret;
-       unsigned int data;
+       unsigned int data = 0;
 
        switch (op) {
        case MAX77686_RTC_WRITE: