Re: [PATCH 26/28] nios2: fix timer initcall return value

2016-10-23 Thread Ley Foon Tan
On Tue, Oct 18, 2016 at 6:16 AM, Arnd Bergmann wrote: > When called more than twice, the nios2_time_init() function > return an uninitialized value, as detected by gcc -Wmaybe-uninitialized > > arch/nios2/kernel/time.c: warning: 'ret' may be used uninitialized in this > function > > This makes it

[PATCH 26/28] nios2: fix timer initcall return value

2016-10-17 Thread Arnd Bergmann
When called more than twice, the nios2_time_init() function return an uninitialized value, as detected by gcc -Wmaybe-uninitialized arch/nios2/kernel/time.c: warning: 'ret' may be used uninitialized in this function This makes it return '0' here, matching the comment above the function. Signed-