Skip to content

Commit

Permalink
lib: fix typo in multiple directories
Browse files Browse the repository at this point in the history
Utilize a code spell-checking tool to scan for and correct spelling errors
in various files within the `lib` directory.

Signed-off-by: Pisit Sawangvonganan <pisit@ndrsolution.com>
  • Loading branch information
ndrs-pst authored and kartben committed Jan 27, 2025
1 parent 8b356fd commit e3a4a16
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lib/acpi/acpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ int acpi_legacy_irq_init(const char *hid, const char *uid)
* If Name path exist then PCI interrupts are configurable and are not hardwired to
* any specific interrupt inputs on the interrupt controller. OSPM can uses
* _PRS/_CRS/_SRS to configure interrupts. But currently leave existing PCI bus
* driver with arch_irq_allocate() menthod for allocate and configure interrupts
* driver with arch_irq_allocate() method for allocate and configure interrupts
* without conflicting.
*/
return -ENOENT;
Expand Down
2 changes: 1 addition & 1 deletion lib/heap/heap.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Internal heap APIs
*/

/* Theese validation checks are non-trivially expensive, so enable
/* These validation checks are non-trivially expensive, so enable
* only when debugging the heap code. They shouldn't be routine
* assertions.
*/
Expand Down
4 changes: 2 additions & 2 deletions lib/os/mpsc_pbuf.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ static bool drop_item_locked(struct mpsc_pbuf_buffer *buffer,

uint32_t rd_wlen = buffer->get_wlen(item);

/* If packet is busy need to be ommited. */
/* If packet is busy need to be omitted. */
if (!is_valid(item)) {
return false;
} else if (item->hdr.busy) {
Expand All @@ -215,7 +215,7 @@ static bool drop_item_locked(struct mpsc_pbuf_buffer *buffer,
buffer->wr_idx = idx_inc(buffer, buffer->wr_idx, rd_wlen);

/* If allocation wrapped around the buffer and found busy packet
* that was already ommited, skip it again.
* that was already omitted, skip it again.
*/
if (buffer->rd_idx == buffer->tmp_rd_idx) {
buffer->tmp_rd_idx = idx_inc(buffer, buffer->tmp_rd_idx, rd_wlen);
Expand Down
4 changes: 2 additions & 2 deletions lib/posix/options/semaphore.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ static void nsem_cleanup(struct nsem_obj *nsem)
}
}

/* Remove a named semaphore if it isn't unsed */
/* Remove a named semaphore if it isn't used */
static void nsem_unref(struct nsem_obj *nsem)
{
nsem->ref_count -= 1;
Expand Down Expand Up @@ -265,7 +265,7 @@ sem_t *sem_open(const char *name, int oflags, ...)
goto unlock;
}

/* Named sempahore doesn't exist, try to create new one */
/* Named semaphore doesn't exist, try to create new one */

if ((oflags & O_CREAT) == 0) {
errno = ENOENT;
Expand Down
2 changes: 1 addition & 1 deletion lib/utils/json.c
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ static int arr_data_parse(struct json_obj *obj, struct json_obj_token *val)
} else if (*obj->lex.pos == JSON_TOK_STRING) {
string_state = true;
} else if (*obj->lex.pos == JSON_TOK_ARRAY_START) {
/* arrary in array update structure count */
/* array in array update structure count */
array_in_array++;
}
}
Expand Down

0 comments on commit e3a4a16

Please sign in to comment.