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>
This commit is contained in:
		
				
					committed by
					
						
						Felix Singer
					
				
			
			
				
	
			
			
			
						parent
						
							77d00b27af
						
					
				
				
					commit
					94ffda9b84
				
			@@ -124,8 +124,8 @@ static const char *cpu_vendor_name(int vendor)
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
	const char *name;
 | 
						const char *name;
 | 
				
			||||||
	name = "<invalid CPU vendor>";
 | 
						name = "<invalid CPU vendor>";
 | 
				
			||||||
	if ((vendor < ARRAY_SIZE(x86_vendor_name)) &&
 | 
						if (vendor < ARRAY_SIZE(x86_vendor_name) &&
 | 
				
			||||||
		(x86_vendor_name[vendor] != 0))
 | 
							x86_vendor_name[vendor] != 0)
 | 
				
			||||||
		name = x86_vendor_name[vendor];
 | 
							name = x86_vendor_name[vendor];
 | 
				
			||||||
	return name;
 | 
						return name;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
@@ -145,7 +145,7 @@ static void identify_cpu(struct device *cpu)
 | 
				
			|||||||
			cpu->device = 0x00000400; /* 486 */
 | 
								cpu->device = 0x00000400; /* 486 */
 | 
				
			||||||
		else
 | 
							else
 | 
				
			||||||
			cpu->device = 0x00000300; /* 386 */
 | 
								cpu->device = 0x00000300; /* 386 */
 | 
				
			||||||
		if ((cpu->device == 0x00000400) && test_cyrix_52div())
 | 
							if (cpu->device == 0x00000400 && test_cyrix_52div())
 | 
				
			||||||
			memcpy(vendor_name, "CyrixInstead", 13);
 | 
								memcpy(vendor_name, "CyrixInstead", 13);
 | 
				
			||||||
			/* If we ever care we can enable cpuid here */
 | 
								/* If we ever care we can enable cpuid here */
 | 
				
			||||||
		/* Detect NexGen with old hypercode */
 | 
							/* Detect NexGen with old hypercode */
 | 
				
			||||||
@@ -195,7 +195,7 @@ struct cpu_driver *find_cpu_driver(struct device *cpu)
 | 
				
			|||||||
		const struct cpu_device_id *id;
 | 
							const struct cpu_device_id *id;
 | 
				
			||||||
		for (id = driver->id_table;
 | 
							for (id = driver->id_table;
 | 
				
			||||||
		     id->vendor != X86_VENDOR_INVALID; id++) {
 | 
							     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))
 | 
								    cpuid_match(cpu->device, id->device, id->device_match_mask))
 | 
				
			||||||
				return driver;
 | 
									return driver;
 | 
				
			||||||
			if (id->vendor == X86_VENDOR_ANY)
 | 
								if (id->vendor == X86_VENDOR_ANY)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user