From 601acd80dbe8b09a0cb4dc08f2a850abc5280ffc Mon Sep 17 00:00:00 2001 From: Francisco Molina Date: Thu, 27 May 2021 11:59:34 +0200 Subject: [PATCH] kernel/os/src: replace SYS_ by OS_ errorcodes --- kernel/os/src/os_mbuf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/os/src/os_mbuf.c b/kernel/os/src/os_mbuf.c index 494dedc32a..b152bf0b7a 100644 --- a/kernel/os/src/os_mbuf.c +++ b/kernel/os/src/os_mbuf.c @@ -966,7 +966,7 @@ os_mbuf_widen(struct os_mbuf *om, uint16_t off, uint16_t len) */ edge_om = os_mbuf_off(om, off, &sub_off); if (edge_om == NULL) { - return SYS_EINVAL; + return OS_EINVAL; } /* If the mbuf has sufficient capacity for the gap, just make room within @@ -994,7 +994,7 @@ os_mbuf_widen(struct os_mbuf *om, uint16_t off, uint16_t len) if (cur == NULL) { /* Free only the mbufs that this function allocated. */ os_mbuf_free_chain(first_new); - return SYS_ENOMEM; + return OS_ENOMEM; } /* Remember the start of the chain of new mbufs. */ @@ -1022,7 +1022,7 @@ os_mbuf_widen(struct os_mbuf *om, uint16_t off, uint16_t len) edge_om->om_len - sub_off); if (rc != 0) { os_mbuf_free_chain(first_new); - return SYS_ENOMEM; + return OS_ENOMEM; } edge_om->om_len = sub_off;