Re: [PATCH] clocksource/drivers: fix uninitialized variable use in timer_of_init

2017-06-22 Thread Daniel Lezcano
On 21/06/2017 23:49, Arnd Bergmann wrote: > If none of the flags are set, 'ret' is uninitialized as pointed out > by gcc: > > drivers/clocksource/timer-of.c: In function 'timer_of_init': > drivers/clocksource/timer-of.c:160:9: error: 'ret' may be used uninitialized > in this function [-Werror=may

[PATCH] clocksource/drivers: fix uninitialized variable use in timer_of_init

2017-06-21 Thread Arnd Bergmann
If none of the flags are set, 'ret' is uninitialized as pointed out by gcc: drivers/clocksource/timer-of.c: In function 'timer_of_init': drivers/clocksource/timer-of.c:160:9: error: 'ret' may be used uninitialized in this function [-Werror=maybe-uninitialized] Since calling the function without