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
apparmor
integrity
keys
loadpin
selinux
smack
tomoyo
yama
Kconfig -rw-r--r-- 7.1 KB
Makefile -rw-r--r-- 989 bytes
commoncap.c -rw-r--r-- 31.4 KB
device_cgroup.c -rw-r--r-- 21.0 KB
inode.c -rw-r--r-- 6.3 KB
lsm_audit.c -rw-r--r-- 10.2 KB
min_addr.c -rw-r--r-- 1.3 KB
security.c -rw-r--r-- 54.8 KB

back to top