net/bnxt: fix build on BSD
[dpdk.git] / drivers / net / bnxt / tf_core / stack.c
index 3337073..9cfbd24 100644 (file)
@@ -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--;