diff options
author | Dave Jones <davej@redhat.com> | 2011-02-22 17:01:42 -0500 |
---|---|---|
committer | Dave Jones <davej@redhat.com> | 2011-02-22 17:01:42 -0500 |
commit | 7f9bc83b7b955370350d842195dfeb17e61e192b (patch) | |
tree | 6b53ab498773def542eecb796503b1b262c7e964 | |
parent | f072518037712e8410565227df3d52d92a6e66b8 (diff) |
remove dead variable 'used_UP' and make user_is_root unsigned
-rw-r--r-- | cpuid.c | 5 | ||||
-rw-r--r-- | lsmsr.c | 1 | ||||
-rw-r--r-- | x86info.c | 3 | ||||
-rw-r--r-- | x86info.h | 3 |
4 files changed, 3 insertions, 9 deletions
@@ -138,7 +138,6 @@ void cpuid(unsigned int CPU_number, unsigned long long idx, perror(cpuname); if (native_cpuid(CPU_number, idx, eax,ebx,ecx,edx)) printf("%s", NATIVE_CPUID_FAILED_MSG); - used_UP = 1; return; } @@ -202,10 +201,8 @@ void cpuid(unsigned int CPU_number, unsigned long long idx, } else { /* Something went wrong, just do UP and hope for the best. */ nodriver = 1; - if (native_cpuid(CPU_number, idx, eax,ebx,ecx,edx)) { + if (native_cpuid(CPU_number, idx, eax,ebx,ecx,edx)) printf("%s", NATIVE_CPUID_FAILED_MSG); - used_UP = 1; - } return; } } @@ -58,7 +58,6 @@ struct { .reg = -1, }; -int used_UP = 0; /* getopt_long stuff */ static struct option lopts[] = { @@ -14,8 +14,7 @@ #include "Intel/Intel.h" -int used_UP = 0; -int user_is_root = 0; +unsigned int user_is_root = 0; unsigned int nrCPUs=1; static unsigned int nrSMPCPUs; @@ -179,8 +179,7 @@ extern unsigned int nrCPUs; extern struct cpudata *firstcpu; -extern int used_UP; -extern int user_is_root; +extern unsigned int user_is_root; extern unsigned int need_root; |