diff options
author | obrien <obrien@FreeBSD.org> | 1997-01-24 12:39:11 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 1997-01-24 12:39:11 +0000 |
commit | 83ff141779ec77662e818f7887a81eeb13b75c9c (patch) | |
tree | 2ee30c8291879fd7e2ff5da23e3bff66ff363a5a /sys | |
parent | 45ea9f4896695775b54af336bc9d91c3dfab27e1 (diff) | |
download | FreeBSD-src-83ff141779ec77662e818f7887a81eeb13b75c9c.zip FreeBSD-src-83ff141779ec77662e818f7887a81eeb13b75c9c.tar.gz |
KNF style police.
Reported by: Bruce
Thanks to: Bruce for also providing a diff.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/amd64/amd64/identcpu.c | 14 | ||||
-rw-r--r-- | sys/i386/i386/identcpu.c | 14 |
2 files changed, 16 insertions, 12 deletions
diff --git a/sys/amd64/amd64/identcpu.c b/sys/amd64/amd64/identcpu.c index 28b8540..4b644b4 100644 --- a/sys/amd64/amd64/identcpu.c +++ b/sys/amd64/amd64/identcpu.c @@ -86,7 +86,7 @@ identifycpu(void) strncpy(cpu_model, i386_cpus[cpu].cpu_name, sizeof cpu_model); #if defined(I486_CPU) || defined(I586_CPU) || defined(I686_CPU) - if (0 == strcmp(cpu_vendor,"GenuineIntel")) { + if (strcmp(cpu_vendor,"GenuineIntel") == 0) { if ((cpu_id & 0xf00) > 3) { cpu_model[0] = '\0'; @@ -135,9 +135,11 @@ identifycpu(void) break; } } - } else if (0 == strcmp(cpu_vendor,"AuthenticAMD")) { - // values taken from AMD Processor Recognition - // http://www.amd.com/html/products/pcd/techdocs/appnotes/20734c.pdf + } else if (strcmp(cpu_vendor,"AuthenticAMD") == 0) { + /* + * Values taken from AMD Processor Recognition + * http://www.amd.com/html/products/pcd/techdocs/appnotes/20734c.pdf + */ cpu_model[0] = '\0'; strcpy(cpu_model, "AMD "); switch (cpu_id & 0xFF0) { @@ -204,8 +206,8 @@ identifycpu(void) if(cpu_id) printf(" Id = 0x%lx",cpu_id); - if (0 == strcmp(cpu_vendor, "GenuineIntel") - || 0 == strcmp(cpu_vendor, "AuthenticAMD")) { + if (strcmp(cpu_vendor, "GenuineIntel") == 0 || + strcmp(cpu_vendor, "AuthenticAMD") == 0) { printf(" Stepping=%ld", cpu_id & 0xf); if (cpu_high > 0) { /* diff --git a/sys/i386/i386/identcpu.c b/sys/i386/i386/identcpu.c index 28b8540..4b644b4 100644 --- a/sys/i386/i386/identcpu.c +++ b/sys/i386/i386/identcpu.c @@ -86,7 +86,7 @@ identifycpu(void) strncpy(cpu_model, i386_cpus[cpu].cpu_name, sizeof cpu_model); #if defined(I486_CPU) || defined(I586_CPU) || defined(I686_CPU) - if (0 == strcmp(cpu_vendor,"GenuineIntel")) { + if (strcmp(cpu_vendor,"GenuineIntel") == 0) { if ((cpu_id & 0xf00) > 3) { cpu_model[0] = '\0'; @@ -135,9 +135,11 @@ identifycpu(void) break; } } - } else if (0 == strcmp(cpu_vendor,"AuthenticAMD")) { - // values taken from AMD Processor Recognition - // http://www.amd.com/html/products/pcd/techdocs/appnotes/20734c.pdf + } else if (strcmp(cpu_vendor,"AuthenticAMD") == 0) { + /* + * Values taken from AMD Processor Recognition + * http://www.amd.com/html/products/pcd/techdocs/appnotes/20734c.pdf + */ cpu_model[0] = '\0'; strcpy(cpu_model, "AMD "); switch (cpu_id & 0xFF0) { @@ -204,8 +206,8 @@ identifycpu(void) if(cpu_id) printf(" Id = 0x%lx",cpu_id); - if (0 == strcmp(cpu_vendor, "GenuineIntel") - || 0 == strcmp(cpu_vendor, "AuthenticAMD")) { + if (strcmp(cpu_vendor, "GenuineIntel") == 0 || + strcmp(cpu_vendor, "AuthenticAMD") == 0) { printf(" Stepping=%ld", cpu_id & 0xf); if (cpu_high > 0) { /* |