This is an automated email from the ASF dual-hosted git repository.
janc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
The following commit(s) were added to refs/heads/master by this push:
new 38927aae3 kernel/os/mbuf: Remove unneeded assignment in os_mbuf_dup
38927aae3 is described below
commit 38927aae37ee1386deb06621ee1e85cc4590ab1b
Author: Szymon Janc <[email protected]>
AuthorDate: Wed Dec 10 10:01:41 2025 +0100
kernel/os/mbuf: Remove unneeded assignment in os_mbuf_dup
omp is assigned in each loop iteration so no need to assign value
before loop.
---
kernel/os/src/os_mbuf.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/kernel/os/src/os_mbuf.c b/kernel/os/src/os_mbuf.c
index 2c193c4f3..accbba08e 100644
--- a/kernel/os/src/os_mbuf.c
+++ b/kernel/os/src/os_mbuf.c
@@ -371,8 +371,6 @@ os_mbuf_dup(struct os_mbuf *om)
struct os_mbuf *head;
struct os_mbuf *copy;
- omp = om->om_omp;
-
head = NULL;
copy = NULL;