Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kernel/os/src: replace SYS_ by OS_ errorcodes #2603

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions kernel/os/src/os_mbuf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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. */
Expand Down Expand Up @@ -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;

Expand Down