src: Remove whitespace between 'sizeof' and '('
Change-Id: Iaf22dc1986427e8aa4521b0e9b40fafa5a29dbbd Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/43720 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
committed by
Patrick Georgi
parent
89739baf53
commit
af56a77915
@@ -218,7 +218,7 @@ static void display_fsp_version_info_hob(const void *hob, size_t size)
|
||||
|
||||
fvi = (void *)&fvih[1];
|
||||
str_ptr = (char *)((uintptr_t)fvi +
|
||||
(fvih->Count * sizeof (FIRMWARE_VERSION_INFO)));
|
||||
(fvih->Count * sizeof(FIRMWARE_VERSION_INFO)));
|
||||
size -= sizeof(SMBIOS_STRUCTURE);
|
||||
|
||||
for (index = 0; index < fvih->Count; index++) {
|
||||
|
@@ -15,31 +15,31 @@ static size_t generate_vbt(const struct i915_gpu_controller_info *const conf,
|
||||
{
|
||||
u8 *ptr;
|
||||
|
||||
memset(head, 0, sizeof (*head));
|
||||
memset(head, 0, sizeof(*head));
|
||||
|
||||
memset(head->signature, ' ', sizeof (head->signature));
|
||||
memset(head->signature, ' ', sizeof(head->signature));
|
||||
memcpy(head->signature, idstr,
|
||||
MIN(strlen(idstr), sizeof (head->signature)));
|
||||
MIN(strlen(idstr), sizeof(head->signature)));
|
||||
head->version = 100;
|
||||
head->header_size = sizeof (*head);
|
||||
head->bdb_offset = sizeof (*head);
|
||||
head->header_size = sizeof(*head);
|
||||
head->bdb_offset = sizeof(*head);
|
||||
|
||||
struct bdb_header *const bdb_head = (struct bdb_header *)(head + 1);
|
||||
memset(bdb_head, 0, sizeof (*bdb_head));
|
||||
memset(bdb_head, 0, sizeof(*bdb_head));
|
||||
memcpy(bdb_head->signature, "BIOS_DATA_BLOCK ", 16);
|
||||
bdb_head->version = 0xa8;
|
||||
bdb_head->header_size = sizeof (*bdb_head);
|
||||
bdb_head->header_size = sizeof(*bdb_head);
|
||||
|
||||
ptr = (u8 *)(bdb_head + 1);
|
||||
|
||||
ptr[0] = BDB_GENERAL_FEATURES;
|
||||
ptr[1] = sizeof (struct bdb_general_features);
|
||||
ptr[2] = sizeof (struct bdb_general_features) >> 8;
|
||||
ptr[1] = sizeof(struct bdb_general_features);
|
||||
ptr[2] = sizeof(struct bdb_general_features) >> 8;
|
||||
ptr += 3;
|
||||
|
||||
struct bdb_general_features *const genfeat =
|
||||
(struct bdb_general_features *)ptr;
|
||||
memset(genfeat, 0, sizeof (*genfeat));
|
||||
memset(genfeat, 0, sizeof(*genfeat));
|
||||
genfeat->panel_fitting = 3;
|
||||
genfeat->flexaim = 1;
|
||||
genfeat->download_ext_vbt = 1;
|
||||
@@ -50,7 +50,7 @@ static size_t generate_vbt(const struct i915_gpu_controller_info *const conf,
|
||||
genfeat->int_crt_support = 1;
|
||||
genfeat->dp_ssc_enb = 1;
|
||||
|
||||
ptr += sizeof (*genfeat);
|
||||
ptr += sizeof(*genfeat);
|
||||
|
||||
bdb_head->bdb_size = ptr - (u8 *)bdb_head;
|
||||
head->vbt_size = ptr - (u8 *)head;
|
||||
|
Reference in New Issue
Block a user