]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
powerpc: Fix cpufreq statement scoping
authorjhibbits <jhibbits@FreeBSD.org>
Fri, 8 Mar 2019 03:59:53 +0000 (03:59 +0000)
committerjhibbits <jhibbits@FreeBSD.org>
Fri, 8 Mar 2019 03:59:53 +0000 (03:59 +0000)
commit5b5b80b2ee21cc48070e430e5b74b4f5a6a3654d
treef6b3280e16a2b8c77775bf06554ae3983532354c
parent4cb083abbb4034b555658d9122caff95410a5f82
powerpc: Fix cpufreq statement scoping

The second statements on the lines are not guarded by the `if' condition.
This triggers a warning with newer gcc.  It's relatively harmless given the
usage, but incorrect.  Instead, wrap the statements so they're properly
guarded.

Reported by: powerpc64-gcc xtoolchain
MFC after: 1 week
sys/powerpc/cpufreq/dfs.c
sys/powerpc/cpufreq/pcr.c