diff options
| author | Olivier Certner <olce@FreeBSD.org> | 2026-01-29 14:08:47 +0000 |
|---|---|---|
| committer | Olivier Certner <olce@FreeBSD.org> | 2026-02-06 16:27:32 +0000 |
| commit | 0f747142c16b1f1921f8f983cba362a204158e9a (patch) | |
| tree | e4ad350672767510fd72454d15929755c46f626a | |
| parent | 461bac05a1454e8a1656cc35f1308cbd6b374f51 (diff) | |
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
| -rw-r--r-- | sys/x86/cpufreq/hwpstate_amd.c | 4 |
1 files 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), |
