arch/x86/cpu: Remove unnecessary parentheses
Change-Id: I157a3a700ed998b1012c85857c5fad78f60d62dc
Signed-off-by: Elyes Haouas <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/77525
Reviewed-by: Felix Singer <service+coreboot-gerrit@felixsinger.de>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
diff --git a/src/arch/x86/cpu.c b/src/arch/x86/cpu.c
index 60b236c..cb616c9 100644
--- a/src/arch/x86/cpu.c
+++ b/src/arch/x86/cpu.c
@@ -124,8 +124,8 @@
{
const char *name;
name = "<invalid CPU vendor>";
- if ((vendor < ARRAY_SIZE(x86_vendor_name)) &&
- (x86_vendor_name[vendor] != 0))
+ if (vendor < ARRAY_SIZE(x86_vendor_name) &&
+ x86_vendor_name[vendor] != 0)
name = x86_vendor_name[vendor];
return name;
}
@@ -145,7 +145,7 @@
cpu->device = 0x00000400; /* 486 */
else
cpu->device = 0x00000300; /* 386 */
- if ((cpu->device == 0x00000400) && test_cyrix_52div())
+ if (cpu->device == 0x00000400 && test_cyrix_52div())
memcpy(vendor_name, "CyrixInstead", 13);
/* If we ever care we can enable cpuid here */
/* Detect NexGen with old hypercode */
@@ -195,7 +195,7 @@
const struct cpu_device_id *id;
for (id = driver->id_table;
id->vendor != X86_VENDOR_INVALID; id++) {
- if ((cpu->vendor == id->vendor) &&
+ if (cpu->vendor == id->vendor &&
cpuid_match(cpu->device, id->device, id->device_match_mask))
return driver;
if (id->vendor == X86_VENDOR_ANY)