android_kernel_oneplus_msm8998/drivers/soc
Arnd Bergmann e50d38bdfc soc: qcom/spm: shut up uninitialized variable warning
commit 00affcac69c7aae6c2cfcbc71f724e1c16d0b445 upstream.

gcc warns about the 'found' variable possibly being used uninitialized:

drivers/soc/qcom/spm.c: In function 'spm_dev_probe':
drivers/soc/qcom/spm.c:305:5: error: 'found' may be used uninitialized in this function [-Werror=maybe-uninitialized]

However, the code is correct because we know that there is
always at least one online CPU. This initializes the 'found'
variable to zero before the loop so the compiler knows
it does not have to warn about it.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-09-24 10:07:42 +02:00
..
brcmstb
dove
mediatek
qcom soc: qcom/spm: shut up uninitialized variable warning 2016-09-24 10:07:42 +02:00
rockchip
sunxi
tegra
ti
versatile
Kconfig
Makefile