https://github.com/torvalds/linux
Revision 069013a9e2bbf1ace3f796cb664023dcd40730f7 authored by Arnd Bergmann on 10 November 2016, 16:44:47 UTC, committed by Linus Torvalds on 11 November 2016, 16:45:08 UTC
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.

Acked-by: Ley Foon Tan <lftan@altera.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 3a6d867
History
Tip revision: 069013a9e2bbf1ace3f796cb664023dcd40730f7 authored by Arnd Bergmann on 10 November 2016, 16:44:47 UTC
nios2: fix timer initcall return value
Tip revision: 069013a
File Mode Size
.gitignore -rw-r--r-- 44 bytes
Kconfig -rw-r--r-- 2.6 KB
Makefile -rw-r--r-- 3.7 KB
system_certificates.S -rw-r--r-- 917 bytes
system_keyring.c -rw-r--r-- 6.8 KB

back to top