lib: Simplify writev_cancel()
authorVolker Lendecke <vl@samba.org>
Thu, 12 Mar 2020 10:42:41 +0000 (11:42 +0100)
committerStefan Metzmacher <metze@samba.org>
Wed, 25 Mar 2020 09:04:27 +0000 (09:04 +0000)
commit051b7c135c959dad8b19c69aa372c7060e39ff19
tree392a9a959e611cfe44e4c6d745cfc5b90274ff9f
parente2d260c7b42e30eca20fc90c8dbb8de82820ee2a
lib: Simplify writev_cancel()

We can only reasonably cancel a writev request that is still
queued. Once writing has started, cancel is pointless. Simplify the
if-conditions.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
lib/async_req/async_sock.c