From ddd04e1793058c0d461c0332224d39554d269d1f Mon Sep 17 00:00:00 2001 From: Jingoo Han Date: Wed, 20 Feb 2013 13:15:40 +1100 Subject: [PATCH] rtc: max77686: add missing variable initialization 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 Cc: Chiwoong Byun Cc: Jonghwa Lee Cc: Kyungmin Park Cc: Myugnjoo Ham Signed-off-by: Andrew Morton --- drivers/rtc/rtc-max77686.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-max77686.c b/drivers/rtc/rtc-max77686.c index 2da0855b742f..fe6c5f4683ea 100644 --- a/drivers/rtc/rtc-max77686.c +++ b/drivers/rtc/rtc-max77686.c @@ -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: -- 2.39.5