summaryrefslogtreecommitdiff
path: root/kernel/configs
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-01-17 01:02:56 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-09-24 10:07:42 +0200
commite50d38bdfc5c58b07e3b15b6fd790ed0c0d97f02 (patch)
treeb02f3c03dbcc2be30ffe5024aed43c74c9341b5e /kernel/configs
parent958acc30ea7704fd1d7eaa7995665e54706e830a (diff)
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>
Diffstat (limited to 'kernel/configs')
0 files changed, 0 insertions, 0 deletions