Fix spelling mistakes using codespell
This commit corrects various spelling mistakes throughout the
repository. The corrections were made automatically using `codespell`[1]
tool.
[1]: https://github.com/codespell-project/codespell
Change-Id: I25415165df192cfc3bd1405aca81bfa5bf2f7a63
Signed-off-by: Manojkiran Eda <manojkiran.eda@gmail.com>
diff --git a/src/dsp/firmware_update.c b/src/dsp/firmware_update.c
index 9ebb970..8b4a1ed 100644
--- a/src/dsp/firmware_update.c
+++ b/src/dsp/firmware_update.c
@@ -533,7 +533,7 @@
return PLDM_ERROR_INVALID_DATA;
}
- // Assuming atleast 1 byte of VendorDefinedDescriptorData
+ // Assuming at least 1 byte of VendorDefinedDescriptorData
if (length < (sizeof(struct pldm_vendor_defined_descriptor_title_data) +
entry->vendor_defined_descriptor_title_str_len)) {
return PLDM_ERROR_INVALID_LENGTH;
diff --git a/src/dsp/pdr.c b/src/dsp/pdr.c
index 09e87be..d5b3173 100644
--- a/src/dsp/pdr.c
+++ b/src/dsp/pdr.c
@@ -496,7 +496,7 @@
assert(start != NULL);
/* Insert after the the last node that matches the input entity type, or
- * at the end if no such match occurrs
+ * at the end if no such match occurs
*/
while (start->next_sibling != NULL) {
uint16_t this_type = start->entity.entity_type;
@@ -1302,7 +1302,7 @@
*entities = l_entities;
}
-/* Find the postion of record in pldm_pdr repo and place new_record in
+/* Find the position of record in pldm_pdr repo and place new_record in
* the same position.
*/
static int pldm_pdr_replace_record(pldm_pdr *repo, pldm_pdr_record *record,