get_cachetype_cp15: eliminate write only multilier

Sponsored by:		Netflix
This commit is contained in:
Warner Losh
2022-04-04 17:53:58 -06:00
parent 04bb568fdc
commit 97663c8d9e
-2
View File
@@ -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)