diff options
-rw-r--r-- | lib/op-open.c | 2 | ||||
-rw-r--r-- | lib/op-reset.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/op-open.c b/lib/op-open.c index 4696a15..9865858 100644 --- a/lib/op-open.c +++ b/lib/op-open.c @@ -248,7 +248,7 @@ ssize_t wimaxll_recv(struct wimaxll_handle *wmx) d_printf(3, wmx, "I: ctx.result %zd result %zd\n", ctx.result, result); } while ((ctx.result == -EINPROGRESS || ctx.result == -ENODATA) - && result >= 0); + && result > 0); if (result < 0) wimaxll_msg(wmx, "E: %s: nl_recvmgsgs failed: %zd\n", __func__, result); diff --git a/lib/op-reset.c b/lib/op-reset.c index 0b842b6..7c6585f 100644 --- a/lib/op-reset.c +++ b/lib/op-reset.c @@ -57,7 +57,7 @@ * * \return result of the operation. * - * - 0: wam reset suceeded + * - 0: warm reset suceeded * - -ENODEV: warm reset failed and had to resort to a cold/bus * reset; the device was disconnected from the system and the * current handle is invalid and should be closed. |