diff options
-rw-r--r-- | src/drivers/elog/boot_count.c | 4 | ||||
-rw-r--r-- | src/drivers/elog/elog.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/drivers/elog/boot_count.c b/src/drivers/elog/boot_count.c index 9da62127dc..17d928a451 100644 --- a/src/drivers/elog/boot_count.c +++ b/src/drivers/elog/boot_count.c @@ -37,7 +37,7 @@ static int boot_count_cmos_read(struct boot_count *bc) u8 i, *p; u16 csum; - for (p = (u8*)bc, i = 0; i < sizeof(*bc); i++, p++) + for (p = (u8 *)bc, i = 0; i < sizeof(*bc); i++, p++) *p = cmos_read(BOOT_COUNT_CMOS_OFFSET + i); /* Verify signature */ @@ -66,7 +66,7 @@ static void boot_count_cmos_write(struct boot_count *bc) bc->checksum = compute_ip_checksum( bc, offsetof(struct boot_count, checksum)); - for (p = (u8*)bc, i = 0; i < sizeof(*bc); i++, p++) + for (p = (u8 *)bc, i = 0; i < sizeof(*bc); i++, p++) cmos_write(*p, BOOT_COUNT_CMOS_OFFSET + i); } diff --git a/src/drivers/elog/elog.c b/src/drivers/elog/elog.c index b394d3c4ce..82df989e25 100644 --- a/src/drivers/elog/elog.c +++ b/src/drivers/elog/elog.c @@ -183,7 +183,7 @@ static void elog_debug_dump_buffer(const char *msg) */ static void elog_update_checksum(struct event_header *event, u8 checksum) { - u8 *event_data = (u8*)event; + u8 *event_data = (u8 *)event; event_data[event->length - 1] = checksum; } @@ -193,7 +193,7 @@ static void elog_update_checksum(struct event_header *event, u8 checksum) static u8 elog_checksum_event(struct event_header *event) { u8 index, checksum = 0; - u8 *data = (u8*)event; + u8 *data = (u8 *)event; for (index = 0; index < event->length; index++) checksum += data[index]; |