diff options
| author | Xiang W <[email protected]> | 2025-03-19 20:39:38 +0800 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2025-04-15 11:38:20 +0530 |
| commit | 190979b4fce6ded989338a0943feeb035db7b75a (patch) | |
| tree | 7c0c4e9f24d8ece1dbed1a83a8497c0b8543a0f7 /lib/utils | |
| parent | 169b4b8ae2f3f1b337179a176a299284d0bed4fe (diff) | |
lib: sbi: Remove unnecessary SBI_INIT_LIST_HEAD
No need to initialise the nodes to be added to the linked list
Signed-off-by: Xiang W <[email protected]>
Reviewed-by: Samuel Holland <[email protected]>
Reviewed-by: Anup Patel <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Anup Patel <[email protected]>
Diffstat (limited to 'lib/utils')
| -rw-r--r-- | lib/utils/fdt/fdt_fixup.c | 1 | ||||
| -rw-r--r-- | lib/utils/mailbox/mailbox.c | 2 |
2 files changed, 0 insertions, 3 deletions
diff --git a/lib/utils/fdt/fdt_fixup.c b/lib/utils/fdt/fdt_fixup.c index 192d6dd5..e237dd07 100644 --- a/lib/utils/fdt/fdt_fixup.c +++ b/lib/utils/fdt/fdt_fixup.c @@ -415,7 +415,6 @@ int fdt_register_general_fixup(struct fdt_general_fixup *fixup) return SBI_EALREADY; } - SBI_INIT_LIST_HEAD(&fixup->head); sbi_list_add_tail(&fixup->head, &fixup_list); return 0; diff --git a/lib/utils/mailbox/mailbox.c b/lib/utils/mailbox/mailbox.c index 2ea7a005..b3f7e8b9 100644 --- a/lib/utils/mailbox/mailbox.c +++ b/lib/utils/mailbox/mailbox.c @@ -34,7 +34,6 @@ int mbox_controller_add(struct mbox_controller *mbox) if (mbox_controller_find(mbox->id)) return SBI_EALREADY; - SBI_INIT_LIST_HEAD(&mbox->node); ATOMIC_INIT(&mbox->xfer_next_seq, 0); SBI_INIT_LIST_HEAD(&mbox->chan_list); sbi_list_add(&mbox->node, &mbox_list); @@ -80,7 +79,6 @@ struct mbox_chan *mbox_controller_request_chan(struct mbox_controller *mbox, if (!ret) return NULL; - SBI_INIT_LIST_HEAD(&ret->node); ret->mbox = mbox; sbi_memcpy(ret->chan_args, chan_args, sizeof(ret->chan_args)); sbi_list_add(&ret->node, &mbox->chan_list); |
