src/lib: Use tabs instead of spaces
Fix the following errors and warnings detected by checkpatch.pl: ERROR: code indent should use tabs where possible ERROR: switch and case should be at the same indent WARNING: Statements should start on a tabstop WARNING: please, no spaces at the start of a line WARNING: please, no space before tabs WARNING: suspect code indent for conditional statements WARNING: labels should not be indented TEST=Build and run on Galileo Gen2 Change-Id: Iebcff26ad41ab6eb0027b871a1c06f3b52dd207c Signed-off-by: Lee Leahy <Leroy.P.Leahy@intel.com> Reviewed-on: https://review.coreboot.org/18732 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth <martinroth@google.com>
This commit is contained in:
@ -190,8 +190,8 @@ int read_ddr3_spd_from_cbfs(u8 *buf, int idx)
|
||||
u16 crc = spd_ddr3_calc_crc(buf, CONFIG_DIMM_SPD_SIZE);
|
||||
|
||||
if (((buf[SPD_CRC_LO] == 0) && (buf[SPD_CRC_HI] == 0))
|
||||
|| (buf[SPD_CRC_LO] != (crc & 0xff))
|
||||
|| (buf[SPD_CRC_HI] != (crc >> 8))) {
|
||||
|| (buf[SPD_CRC_LO] != (crc & 0xff))
|
||||
|| (buf[SPD_CRC_HI] != (crc >> 8))) {
|
||||
printk(BIOS_WARNING, "SPD CRC %02x%02x is invalid, should be %04x\n",
|
||||
buf[SPD_CRC_HI], buf[SPD_CRC_LO], crc);
|
||||
buf[SPD_CRC_LO] = crc & 0xff;
|
||||
@ -204,7 +204,7 @@ int read_ddr3_spd_from_cbfs(u8 *buf, int idx)
|
||||
printk(BIOS_WARNING, "%02x ", buf[i]);
|
||||
}
|
||||
printk(BIOS_WARNING, "\n");
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user