diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/cmsg.c | 2 | ||||
-rw-r--r-- | common/new_nvmem.c | 10 | ||||
-rw-r--r-- | common/test_util.c | 6 |
3 files changed, 9 insertions, 9 deletions
diff --git a/common/cmsg.c b/common/cmsg.c index af733e72ef..63560171df 100644 --- a/common/cmsg.c +++ b/common/cmsg.c @@ -33,7 +33,7 @@ struct console_packet { /* Set if the sender had to discard packets due to buffer overflow. */ uint8_t overflow : 1; - uint8_t dummy : 3; + uint8_t placeholder : 3; /* Channel; values from enum console_channel */ uint8_t channel; diff --git a/common/new_nvmem.c b/common/new_nvmem.c index 1be4d4b4b2..da6d5f4370 100644 --- a/common/new_nvmem.c +++ b/common/new_nvmem.c @@ -707,7 +707,7 @@ static enum ec_error_list set_first_page_header(void) */ static int container_is_valid(struct nn_container *ch) { - struct nn_container dummy_c; + struct nn_container placeholder_c; uint32_t hash; uint32_t preserved_hash; uint8_t preserved_type; @@ -723,9 +723,9 @@ static int container_is_valid(struct nn_container *ch) ch->container_hash = preserved_hash; ch->container_type = preserved_type; - dummy_c.container_hash = hash; + placeholder_c.container_hash = hash; - return dummy_c.container_hash == ch->container_hash; + return placeholder_c.container_hash == ch->container_hash; } static uint32_t aligned_container_size(const struct nn_container *ch) @@ -1881,7 +1881,7 @@ static void restore_object(void *pad, size_t size) * flash - it would never be reinstated even after TPM reinitializes. * * The reserved_bitmap array is a bitmap of all detected reserved objects, - * those not in the array are initialized to a dummy initial value. + * those not in the array are initialized to a placeholder initial value. */ static enum ec_error_list verify_reserved(uint8_t *reserved_bitmap, struct nn_container *ch) @@ -3053,7 +3053,7 @@ int nvmem_erase_tpm_data_selective(const uint32_t *objs_to_erase) /* * Now fill up the current flash page with erased objects to make sure - * that it would be erased during next compaction. Use dummy key, + * that it would be erased during next compaction. Use placeholder key, * value pairs as the erase objects. */ saved_list_index = controller_at.list_index; diff --git a/common/test_util.c b/common/test_util.c index 2d2d3ba462..da0daa49c7 100644 --- a/common/test_util.c +++ b/common/test_util.c @@ -30,13 +30,13 @@ int __test_error_count; /* Weak reference function as an entry point for unit test */ test_mockable void run_test(void) { } -/* Default dummy test init */ +/* Default placeholder test init */ test_mockable void test_init(void) { } -/* Default dummy before test */ +/* Default placeholder before test */ test_mockable void before_test(void) { } -/* Default dummy after test */ +/* Default placeholder after test */ test_mockable void after_test(void) { } #ifdef TEST_COVERAGE |