summaryrefslogtreecommitdiff
path: root/src/soc/intel/common/block/crashlog
diff options
context:
space:
mode:
authorElyes Haouas <ehaouas@noos.fr>2022-11-18 15:07:33 +0100
committerMartin L Roth <gaumless@gmail.com>2022-11-26 23:39:16 +0000
commit9018dee6856791ab599463a771826936c20a80bb (patch)
tree079e966e6b894bb9c81ca25e9e783c28947e0e64 /src/soc/intel/common/block/crashlog
parent5aa98964fb4e2e8c10b1663f8d6a3faa2b700410 (diff)
src/soc/intel: Remove unnecessary space after casts
Change-Id: I098104f32dd7c66d7bb79588ef315a242c3889ba Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/69806 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Werner Zeh <werner.zeh@siemens.com> Reviewed-by: Subrata Banik <subratabanik@google.com>
Diffstat (limited to 'src/soc/intel/common/block/crashlog')
-rw-r--r--src/soc/intel/common/block/crashlog/crashlog.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/soc/intel/common/block/crashlog/crashlog.c b/src/soc/intel/common/block/crashlog/crashlog.c
index 239c72c058..2bdf2cc2eb 100644
--- a/src/soc/intel/common/block/crashlog/crashlog.c
+++ b/src/soc/intel/common/block/crashlog/crashlog.c
@@ -329,7 +329,7 @@ void cl_get_pmc_sram_data(void)
/* allocate mem for the record to be copied */
unsigned long pmc_cl_cbmem_addr;
- pmc_cl_cbmem_addr = (unsigned long) cbmem_add(CBMEM_ID_PMC_CRASHLOG,
+ pmc_cl_cbmem_addr = (unsigned long)cbmem_add(CBMEM_ID_PMC_CRASHLOG,
pmc_crashLog_size);
if (!pmc_cl_cbmem_addr) {
printk(BIOS_ERR, "Unable to allocate CBMEM PMC crashLog entry.\n");
@@ -337,7 +337,7 @@ void cl_get_pmc_sram_data(void)
}
memset((void *)pmc_cl_cbmem_addr, 0, pmc_crashLog_size);
- dest = (u32 *)(uintptr_t) pmc_cl_cbmem_addr;
+ dest = (u32 *)(uintptr_t)pmc_cl_cbmem_addr;
bool pmc_sram = true;
pmc_crashlog_desc_table_t descriptor_table = cl_get_pmc_descriptor_table();
if (discovery_buf.bits.discov_mechanism == 1) {
@@ -400,16 +400,16 @@ void cl_get_cpu_sram_data(void)
/* allocate memory buffers for CPU crashog data to be copied */
unsigned long cpu_crashlog_cbmem_addr;
- cpu_crashlog_cbmem_addr = (unsigned long) cbmem_add(CBMEM_ID_CPU_CRASHLOG,
+ cpu_crashlog_cbmem_addr = (unsigned long)cbmem_add(CBMEM_ID_CPU_CRASHLOG,
m_cpu_crashLog_size);
if (!cpu_crashlog_cbmem_addr) {
printk(BIOS_ERR, "Failed to add CPU main crashLog entries to CBMEM.\n");
return;
}
- memset((void *) cpu_crashlog_cbmem_addr, 0, m_cpu_crashLog_size);
+ memset((void *)cpu_crashlog_cbmem_addr, 0, m_cpu_crashLog_size);
tmp_bar_addr = cl_get_cpu_bar_addr();
- dest = (u32 *)(uintptr_t) cpu_crashlog_cbmem_addr;
+ dest = (u32 *)(uintptr_t)cpu_crashlog_cbmem_addr;
bool pmc_sram = false;
for (int i = 0 ; i < cpu_cl_disc_tab.header.fields.count ; i++) {