drivers/elog: Correct code style
lint report errors Solve the POINTER_LOCATION errors BUG = N/A TEST = N/A Change-Id: I65926abd6bbaff1efce39efad9ec92c4f364b533 Signed-off-by: Frans Hendriks <fhendriks@eltan.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/49971 Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
committed by
Patrick Georgi
parent
9d732d3462
commit
a4ecf9654e
@@ -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];
|
||||
|
Reference in New Issue
Block a user