Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Mar 2021 15:14:08 GMT
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 40c0c3ef1f7d - stable/12 - amdtemp(4): Remove dead code that snuck in with r357190
Message-ID:  <202103041514.124FE85f058952@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/12 has been updated by mav:

URL: https://cgit.FreeBSD.org/src/commit/?id=40c0c3ef1f7d1b932e8c22e0a62d2336a4f898e9

commit 40c0c3ef1f7d1b932e8c22e0a62d2336a4f898e9
Author:     Conrad Meyer <cem@FreeBSD.org>
AuthorDate: 2020-01-28 03:27:06 +0000
Commit:     Alexander Motin <mav@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();
 	}
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202103041514.124FE85f058952>