src/arch: Remove whitespace after sizeof
Change-Id: Ia2fc3d5ea88d61ba7c4a1daebfe74a24948c8f6e Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/16865 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth <martinroth@google.com>
This commit is contained in:
		
				
					committed by
					
						
						Martin Roth
					
				
			
			
				
	
			
			
			
						parent
						
							90ba189744
						
					
				
				
					commit
					7d87e767b6
				
			@@ -870,7 +870,7 @@ unsigned long write_acpi_tables(unsigned long start)
 | 
				
			|||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (dsdt_file->length > dsdt_size
 | 
						if (dsdt_file->length > dsdt_size
 | 
				
			||||||
	    || dsdt_file->length < sizeof (acpi_header_t)
 | 
						    || dsdt_file->length < sizeof(acpi_header_t)
 | 
				
			||||||
	    || memcmp(dsdt_file->signature, "DSDT", 4) != 0) {
 | 
						    || memcmp(dsdt_file->signature, "DSDT", 4) != 0) {
 | 
				
			||||||
		printk(BIOS_ERR, "Invalid DSDT file, skipping ACPI tables\n");
 | 
							printk(BIOS_ERR, "Invalid DSDT file, skipping ACPI tables\n");
 | 
				
			||||||
		return current;
 | 
							return current;
 | 
				
			||||||
@@ -880,7 +880,7 @@ unsigned long write_acpi_tables(unsigned long start)
 | 
				
			|||||||
				     CBFS_TYPE_RAW, &slic_size);
 | 
									     CBFS_TYPE_RAW, &slic_size);
 | 
				
			||||||
	if (slic_file
 | 
						if (slic_file
 | 
				
			||||||
	    && (slic_file->length > slic_size
 | 
						    && (slic_file->length > slic_size
 | 
				
			||||||
		|| slic_file->length < sizeof (acpi_header_t)
 | 
							|| slic_file->length < sizeof(acpi_header_t)
 | 
				
			||||||
		|| memcmp(slic_file->signature, "SLIC", 4) != 0)) {
 | 
							|| memcmp(slic_file->signature, "SLIC", 4) != 0)) {
 | 
				
			||||||
		slic_file = 0;
 | 
							slic_file = 0;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -348,7 +348,7 @@ void acpigen_write_processor(u8 cpuindex, u32 pblock_addr, u8 pblock_len)
 | 
				
			|||||||
	acpigen_emit_byte(0x83);
 | 
						acpigen_emit_byte(0x83);
 | 
				
			||||||
	acpigen_write_len_f();
 | 
						acpigen_write_len_f();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	snprintf(pscope, sizeof (pscope),
 | 
						snprintf(pscope, sizeof(pscope),
 | 
				
			||||||
		 "\\_PR.CP%02d", (unsigned int) cpuindex);
 | 
							 "\\_PR.CP%02d", (unsigned int) cpuindex);
 | 
				
			||||||
	acpigen_emit_namestring(pscope);
 | 
						acpigen_emit_namestring(pscope);
 | 
				
			||||||
	acpigen_emit_byte(cpuindex);
 | 
						acpigen_emit_byte(cpuindex);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user