diff options
| author | Garrett D'Amore <garrett@damore.org> | 2024-12-26 16:48:54 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2024-12-26 18:21:23 -0800 |
| commit | be0cd10fb34241f233c8bc6d0d0f5897afd9f3dc (patch) | |
| tree | a2cbfad34d46f41d5a7c666092d753ad835ce2e2 /src/sp/protocol/pubsub0/sub.c | |
| parent | d0e45005f16be6d69c1b6ac6f0dec44e636cd5c6 (diff) | |
| download | nng-be0cd10fb34241f233c8bc6d0d0f5897afd9f3dc.tar.gz nng-be0cd10fb34241f233c8bc6d0d0f5897afd9f3dc.tar.bz2 nng-be0cd10fb34241f233c8bc6d0d0f5897afd9f3dc.zip | |
sub: remove some calls to nni_aio_begin
Diffstat (limited to 'src/sp/protocol/pubsub0/sub.c')
| -rw-r--r-- | src/sp/protocol/pubsub0/sub.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/sp/protocol/pubsub0/sub.c b/src/sp/protocol/pubsub0/sub.c index 86f1d519..a4778555 100644 --- a/src/sp/protocol/pubsub0/sub.c +++ b/src/sp/protocol/pubsub0/sub.c @@ -127,9 +127,7 @@ static void sub0_ctx_send(void *arg, nni_aio *aio) { NNI_ARG_UNUSED(arg); - if (nni_aio_begin(aio) == 0) { - nni_aio_finish_error(aio, NNG_ENOTSUP); - } + nni_aio_finish_error(aio, NNG_ENOTSUP); } static void @@ -584,9 +582,7 @@ static void sub0_sock_send(void *arg, nni_aio *aio) { NNI_ARG_UNUSED(arg); - if (nni_aio_begin(aio) == 0) { - nni_aio_finish_error(aio, NNG_ENOTSUP); - } + nni_aio_finish_error(aio, NNG_ENOTSUP); } static void |
