There is no ENODATA in the errno.h in BSD.
Use a common errno to return error.
Fixes: cef1ca505d7f ("net/bnxt: support EM/EEM")
Signed-off-by: Ajit Khaparde <[email protected]>
Reviewed-by: Kishore Padmanabha <[email protected]>
Reviewed-by: Lance Richardson <[email protected]>
---
drivers/net/bnxt/tf_core/stack.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/bnxt/tf_core/stack.c b/drivers/net/bnxt/tf_core/stack.c
index 3337073b7..9cfbd244f 100644
--- a/drivers/net/bnxt/tf_core/stack.c
+++ b/drivers/net/bnxt/tf_core/stack.c
@@ -73,7 +73,7 @@ int
stack_pop(struct stack *st, uint32_t *x)
{
if (stack_is_empty(st))
- return -ENODATA;
+ return -ENOENT;
*x = st->items[st->top];
st->top--;
--
2.21.1 (Apple Git-122.3)