summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorInaky Perez-Gonzalez <inaky@linux.intel.com>2009-04-23 18:31:07 -0700
committerInaky Perez-Gonzalez <inaky@linux.intel.com>2009-04-24 15:44:47 -0700
commitefc932f5d576b672c1f6a263446354053e314413 (patch)
treeda5ed43d2a6eb5b04b3f308743b63e3f66c7fe09
parentbdb491e42ad7f85158ef44f2bf58f35b66e1f0a5 (diff)
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 <inaky@linux.intel.com>
-rw-r--r--lib/op-open.c4
1 files 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",