From efc932f5d576b672c1f6a263446354053e314413 Mon Sep 17 00:00:00 2001 From: Inaky Perez-Gonzalez Date: Thu, 23 Apr 2009 18:31:07 -0700 Subject: libwimaxll: wimaxll_recv() returns 0 if the callback is not filled When a callback is not filled, that is not necessarily an error, as the client decided to ignore it. Just return 0 in said case. Signed-off-by: Inaky Perez-Gonzalez --- lib/op-open.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/op-open.c b/lib/op-open.c index 776d2d5..a81af81 100644 --- a/lib/op-open.c +++ b/lib/op-open.c @@ -142,13 +142,13 @@ int wimaxll_gnl_cb(struct nl_msg *msg, void *_ctx) if (wmx->msg_to_user_cb) result = wimaxll_gnl_handle_msg_to_user(wmx, msg); else - result = -ENODATA; + result = 0; break; case WIMAX_GNL_RE_STATE_CHANGE: if (wmx->state_change_cb) result = wimaxll_gnl_handle_state_change(wmx, msg); else - result = -ENODATA; + result = 0; break; default: d_printf(3, wmx, "E: %s: received unknown gnl message %d\n", -- cgit v1.2.3