diff options
Diffstat (limited to 'arch/x86/machine/cpu.c')
-rw-r--r-- | arch/x86/machine/cpu.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/arch/x86/machine/cpu.c b/arch/x86/machine/cpu.c index 54a2676..b60bea9 100644 --- a/arch/x86/machine/cpu.c +++ b/arch/x86/machine/cpu.c @@ -180,7 +180,7 @@ cpu_delay(unsigned long usecs) static const struct cpu_vendor cpu_vendors[] = { { CPU_VENDOR_INTEL, "GenuineIntel" }, - { CPU_VENDOR_AMD, "AuthenticAMD" }, + { CPU_VENDOR_AMD, "AuthenticAMD" }, }; void * __init @@ -442,11 +442,11 @@ cpu_load_idt(const void *idt, size_t size) static const struct cpu_vendor * cpu_vendor_lookup(const char *str) { - size_t i; - - for (i = 0; i < ARRAY_SIZE(cpu_vendors); i++) - if (strcmp(str, cpu_vendors[i].str) == 0) + for (size_t i = 0; i < ARRAY_SIZE(cpu_vendors); i++) { + if (strcmp(str, cpu_vendors[i].str) == 0) { return &cpu_vendors[i]; + } + } return NULL; } @@ -458,8 +458,9 @@ cpu_init_vendor_id(struct cpu *cpu) vendor = cpu_vendor_lookup(cpu->vendor_str); - if (vendor == NULL) + if (vendor == NULL) { return; + } cpu->vendor_id = vendor->id; } |