Re: [PATCH] fix build waring: drivers/regulator/core.c: warning: ‘val’ may be used uninitialized in this function [-Wuninitialized]

2012-11-09 Thread Mark Brown
On Fri, Nov 09, 2012 at 05:29:40PM +0800, helight wrote: > - unsigned int val; > int ret; > + unsigned int val = 0; This sort of change is really not at all helpful, we should be making sure that whatever path should be initialising the value but isn't does so, just initialising at declar

[PATCH] fix build waring: drivers/regulator/core.c: warning: ‘val’ may be used uninitialized in this function [-Wuninitialized]

2012-11-09 Thread helight
rom c5b564ba10101961ffca9a67c6ddcc6216b99dce Mon Sep 17 00:00:00 2001 From: helight xu Date: Sat, 10 Nov 2012 01:11:14 +0800 Subject: [PATCH] fix build waring: drivers/regulator/core.c: warning: ‘val’ may be used uninitialized in this function [-Wuninitialized] Signed-off-by: helight xu --- driv