s3: Remove a pointless else branch
authorVolker Lendecke <vl@samba.org>
Tue, 22 Dec 2009 13:07:52 +0000 (14:07 +0100)
committerVolker Lendecke <vl@samba.org>
Tue, 22 Dec 2009 13:08:29 +0000 (14:08 +0100)
source3/libsmb/async_smb.c

index bbabba30bc4ef09068ca2d3903cc74b4b84cd646..ce225f4e00b14d6487c0f3f5cd4f081d6f63f7ae 100644 (file)
@@ -505,12 +505,10 @@ static NTSTATUS cli_smb_req_iov_send(struct tevent_req *req,
                }
                iov[0].iov_base = (void *)buf;
                iov[0].iov_len = talloc_get_size(buf);
-               subreq = writev_send(state, state->ev, state->cli->outgoing,
-                                    state->cli->fd, false, iov, 1);
-       } else {
-               subreq = writev_send(state, state->ev, state->cli->outgoing,
-                                    state->cli->fd, false, iov, iov_count);
+               iov_count = 1;
        }
+       subreq = writev_send(state, state->ev, state->cli->outgoing,
+                            state->cli->fd, false, iov, iov_count);
        if (subreq == NULL) {
                return NT_STATUS_NO_MEMORY;
        }