[v3,1/9] net/bnxt: fix compilation on BSD
Checks
Commit Message
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 <ajit.khaparde@broadcom.com>
Reviewed-by: Kishore Padmanabha <kishore.padmanabha@broadcom.com>
Reviewed-by: Lance Richardson <lance.richardson@broadcom.com>
---
drivers/net/bnxt/tf_core/stack.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -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--;