Date: Fri, 06 Feb 2026 16:29:20 +0000 From: Olivier Certner <olce@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 0f747142c16b - main - hwpstate_amd(4): attach(): Fix style Message-ID: <698616e0.1d176.44302801@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch main has been updated by olce: URL: https://cgit.FreeBSD.org/src/commit/?id=0f747142c16b1f1921f8f983cba362a204158e9a commit 0f747142c16b1f1921f8f983cba362a204158e9a Author: Olivier Certner <olce@FreeBSD.org> AuthorDate: 2026-01-29 14:08:47 +0000 Commit: Olivier Certner <olce@FreeBSD.org> 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),home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?698616e0.1d176.44302801>
