git: 40c0c3ef1f7d - stable/12 - amdtemp(4): Remove dead code that snuck in with r357190
Alexander Motin
mav at FreeBSD.org
Thu Mar 4 15:14:16 UTC 2021
The branch stable/12 has been updated by mav:
URL: https://cgit.FreeBSD.org/src/commit/?id=40c0c3ef1f7d1b932e8c22e0a62d2336a4f898e9
commit 40c0c3ef1f7d1b932e8c22e0a62d2336a4f898e9
Author: Conrad Meyer <cem at FreeBSD.org>
AuthorDate: 2020-01-28 03:27:06 +0000
Commit: Alexander Motin <mav at FreeBSD.org>
CommitDate: 2021-03-04 15:09:18 +0000
amdtemp(4): Remove dead code that snuck in with r357190
I intended to remove this before committing, but neglected to.
(cherry picked from commit cc3b01385bfd7e7f67866c4ac0a1b43370d7e6b7)
---
sys/dev/amdtemp/amdtemp.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/sys/dev/amdtemp/amdtemp.c b/sys/dev/amdtemp/amdtemp.c
index 8eb279c19cb8..38be7d9bd1b5 100644
--- a/sys/dev/amdtemp/amdtemp.c
+++ b/sys/dev/amdtemp/amdtemp.c
@@ -760,11 +760,6 @@ amdtemp_gettemp17h(device_t dev, amdsensor_t sensor)
("sensor %d: not valid", (int)sensor));
return (amdtemp_decode_fam10h_to_17h(sc->sc_offset, val, true));
default:
-#if 0
- KASSERT(false, ("%s: invalid sensor %d", __func__,
- (int)sensor));
- return (-1);
-#endif
__unreachable();
}
}
More information about the dev-commits-src-all
mailing list