aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/amdtemp/amdtemp.c
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2021-12-09 16:25:49 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2021-12-09 16:37:26 +0000
commitb9723c5ba9731f1d628d37a624e67aaff9ff0209 (patch)
tree722de96f0f7346f568f08557573abec53eac41f7 /sys/dev/amdtemp/amdtemp.c
parent8c3149be5486e999c7d08585810e4dda5e3c20a3 (diff)
Diffstat (limited to 'sys/dev/amdtemp/amdtemp.c')
-rw-r--r--sys/dev/amdtemp/amdtemp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/amdtemp/amdtemp.c b/sys/dev/amdtemp/amdtemp.c
index 21227a47c513..4606f03ae63c 100644
--- a/sys/dev/amdtemp/amdtemp.c
+++ b/sys/dev/amdtemp/amdtemp.c
@@ -744,7 +744,7 @@ amdtemp_gettemp15hm60h(device_t dev, amdsensor_t sensor)
{
struct amdtemp_softc *sc = device_get_softc(dev);
uint32_t val;
- int error;
+ int error __diagused;
error = amdsmn_read(sc->sc_smn, AMDTEMP_15H_M60H_REPTMP_CTRL, &val);
KASSERT(error == 0, ("amdsmn_read"));
@@ -756,7 +756,7 @@ amdtemp_gettemp17h(device_t dev, amdsensor_t sensor)
{
struct amdtemp_softc *sc = device_get_softc(dev);
uint32_t val;
- int error;
+ int error __diagused;
switch (sensor) {
case CORE0_SENSOR0: