The branch main has been updated by olce: URL: https://cgit.FreeBSD.org/src/commit/?id=0f747142c16b1f1921f8f983cba362a204158e9a
commit 0f747142c16b1f1921f8f983cba362a204158e9a Author: Olivier Certner <[email protected]> AuthorDate: 2026-01-29 14:08:47 +0000 Commit: Olivier Certner <[email protected]> CommitDate: 2026-02-06 16:27:32 +0000 hwpstate_amd(4): attach(): Fix style No functional change intended. Reviewed by: aokblast, emaste Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D55003 --- sys/x86/cpufreq/hwpstate_amd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/x86/cpufreq/hwpstate_amd.c b/sys/x86/cpufreq/hwpstate_amd.c index d0eccf0d3eaa..5d96808ceaee 100644 --- a/sys/x86/cpufreq/hwpstate_amd.c +++ b/sys/x86/cpufreq/hwpstate_amd.c @@ -773,9 +773,9 @@ hwpstate_attach(device_t dev) int res; sc = device_get_softc(dev); - if (sc->flags & PSTATE_CPPC) { + if ((sc->flags & PSTATE_CPPC) != 0) { if ((res = amd_set_autonomous_hwp(sc))) - return res; + return (res); SYSCTL_ADD_PROC(device_get_sysctl_ctx(dev), SYSCTL_STATIC_CHILDREN(_debug), OID_AUTO, device_get_nameunit(dev),
