linux-next: build warning after merge of the rtc tree

From: Stephen Rothwell
Date: Mon Jan 09 2017 - 22:01:17 EST


Hi Alexandre,

After merging the rtc tree, today's linux-next build (x86_64 allmodconfig)
produced this 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 [-Wmaybe-uninitialized]
return rtc->val_to_freq[index_max].value;
^

Introduced by commit

61cffa2438e3 ("rtc: armada38x: Follow the new recommendation for errata implementation")

--
Cheers,
Stephen Rothwell