commit | ab4d9174d890bff4c07b44957a20eacb33c88172 | [log] [tgz] |
---|---|---|
author | Damjan Marion <dmarion@me.com> | Tue Jan 31 20:14:13 2023 +0100 |
committer | Dave Wallace <dwallacelf@gmail.com> | Wed Feb 01 14:50:33 2023 +0000 |
tree | d45c2579c3948a9b1b080cff0dcb09468e1cbebe | |
parent | 4d290c3aa74c7bd346b311940e5feb399464057e [diff] [blame] |
memif: improve error reporting Type: improvement Change-Id: I12b120d988347cced3df82810e86dc2fd5cfca80 Signed-off-by: Damjan Marion <dmarion@me.com>
diff --git a/src/vnet/api_errno.h b/src/vnet/api_errno.h index 4e91e13..60e48f4 100644 --- a/src/vnet/api_errno.h +++ b/src/vnet/api_errno.h
@@ -35,6 +35,8 @@ static_always_inline vnet_api_error_t vnet_api_error (clib_error_t *err) { + if (err == 0) + return 0; if (err->code >= 0) return VNET_API_ERROR_BUG; return err->code;