Skip to content

Commit 9809931

Browse files
authored
clean up unused variables and unreachable statements
1 parent 6b407a1 commit 9809931

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

cpuid_x86.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -323,9 +323,11 @@ int get_vendor(void){
323323

324324
int get_cputype(int gettype){
325325
int eax, ebx, ecx, edx;
326+
/*
326327
int extend_family, family;
327328
int extend_model, model;
328329
int type, stepping;
330+
*/
329331
int feature = 0;
330332

331333
cpuid(1, &eax, &ebx, &ecx, &edx);
@@ -428,7 +430,8 @@ int get_cacheinfo(int type, cache_info_t *cacheinfo){
428430
cpuid(0, &cpuid_level, &ebx, &ecx, &edx);
429431

430432
if (cpuid_level > 1) {
431-
int numcalls =0 ;
433+
int numcalls;
434+
432435
cpuid(2, &eax, &ebx, &ecx, &edx);
433436
numcalls = BITMASK(eax, 0, 0xff); //FIXME some systems may require repeated calls to read all entries
434437
info[ 0] = BITMASK(eax, 8, 0xff);
@@ -1637,7 +1640,6 @@ int get_cpuname(void){
16371640
else
16381641
return CPUTYPE_BARCELONA;
16391642
}
1640-
break;
16411643
case 10: // Zen3
16421644
if(support_avx())
16431645
#ifndef NO_AVX2
@@ -2193,7 +2195,6 @@ int get_coretype(void){
21932195
else
21942196
return CORE_NEHALEM;
21952197
#endif
2196-
break;
21972198

21982199
case 7:
21992200
if (model == 10)
@@ -2582,4 +2583,4 @@ void get_sse(void){
25822583
if (features & HAVE_FMA3 ) printf("HAVE_FMA3=1\n");
25832584

25842585
}
2585-
//}
2586+
//}

0 commit comments

Comments
 (0)