git: 8de3643a861b - stable/13 - get_cachetype_cp15: eliminate write only multilier

From: Warner Losh <imp_at_FreeBSD.org>
Date: Sun, 02 Oct 2022 04:29:13 UTC
The branch stable/13 has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=8de3643a861b569345c3eb71f5742a0b7fb9365f

commit 8de3643a861b569345c3eb71f5742a0b7fb9365f
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-07-08 17:53:28 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2022-10-02 04:25:50 +0000

    get_cachetype_cp15: eliminate write only multilier
    
    Sponsored by:           Netflix
    
    (cherry picked from commit 97663c8d9e898d176d0b36dcd35f30ec1b874d2f)
---
 sys/arm/arm/cpufunc.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/sys/arm/arm/cpufunc.c b/sys/arm/arm/cpufunc.c
index 3f773a3ece72..7a857f8997e9 100644
--- a/sys/arm/arm/cpufunc.c
+++ b/sys/arm/arm/cpufunc.c
@@ -146,7 +146,6 @@ get_cachetype_cp15(void)
 {
 	u_int ctype, dsize, cpuid;
 	u_int clevel, csize, i, sel;
-	u_int multiplier;
 	u_char type;
 
 	ctype = cp15_ctr_get();
@@ -193,7 +192,6 @@ get_cachetype_cp15(void)
 		 */
 
 		dsize = CPU_CT_DSIZE(ctype);
-		multiplier = (dsize & CPU_CT_xSIZE_M) ? 3 : 2;
 		arm_dcache_align = 1U << (CPU_CT_xSIZE_LEN(dsize) + 3);
 		if (CPU_CT_xSIZE_ASSOC(dsize) == 0) {
 			if (dsize & CPU_CT_xSIZE_M)