Re: [PATCH] rtc: armada38x: hide maybe-uninitialized warning

2017-01-12 Thread Alexandre Belloni
Hi Arnd, On 11/01/2017 at 15:50:31 +0100, Arnd Bergmann wrote : > The function is too complicated for gcc to realize that this variable > does eventually get initialized, causing a harmless warning: > > drivers/rtc/rtc-armada38x.c: In function 'read_rtc_register_wa': > drivers/rtc/rtc-armada38x.c

[PATCH] rtc: armada38x: hide maybe-uninitialized warning

2017-01-11 Thread Arnd Bergmann
The function is too complicated for gcc to realize that this variable does eventually get initialized, causing a harmless warning: drivers/rtc/rtc-armada38x.c: In function 'read_rtc_register_wa': drivers/rtc/rtc-armada38x.c:131:25: warning: 'index_max' may be used uninitialized in this function [