Re: [PATCH] misc: ioc4: fix variable may be used uninitialized warning

2014-12-08 Thread Prabhakar Lad
On Mon, Dec 8, 2014 at 1:18 PM, Richard Leitner wrote: > On Mon, 08 Dec 2014 13:42:47 +0100 > Arnd Bergmann wrote: > >> On Monday 08 December 2014 13:27:20 Richard Leitner wrote: >> > >> > As far as I can tell 'start' cannot really be used uninitialized >> > here, but for the sanity of gcc output

Re: [PATCH] misc: ioc4: fix variable may be used uninitialized warning

2014-12-08 Thread Richard Leitner
On Mon, 08 Dec 2014 13:42:47 +0100 Arnd Bergmann wrote: > On Monday 08 December 2014 13:27:20 Richard Leitner wrote: > > > > As far as I can tell 'start' cannot really be used uninitialized > > here, but for the sanity of gcc output explicitly initialize it. > > Same goes for the 'end' variable.

Re: [PATCH] misc: ioc4: fix variable may be used uninitialized warning

2014-12-08 Thread Arnd Bergmann
On Monday 08 December 2014 13:27:20 Richard Leitner wrote: > Fix the following build warning: > drivers/misc/ioc4.c: In function ‘ioc4_probe’: > drivers/misc/ioc4.c:194:16: warning: ‘start’ may be used uninitialized > in this function [-Wmaybe-uninitialized] > period = (end - start) / >

[PATCH] misc: ioc4: fix variable may be used uninitialized warning

2014-12-08 Thread Richard Leitner
Fix the following build warning: drivers/misc/ioc4.c: In function ‘ioc4_probe’: drivers/misc/ioc4.c:194:16: warning: ‘start’ may be used uninitialized in this function [-Wmaybe-uninitialized] period = (end - start) / ^ drivers/misc/ioc4.c:148:11: note: ‘start’ was declared here