summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-12-22 14:07:52 +0100
committerVolker Lendecke <vl@samba.org>2009-12-22 14:08:08 +0100
commit528c150d558fbd239c3d8e6b466879a5a5de76c6 (patch)
tree4479e14f75847efda30203f2298eca8350850b59 /source3
parentb6f446ca35810f13208ab82ec9720271fb64af44 (diff)
downloadsamba-528c150d558fbd239c3d8e6b466879a5a5de76c6.tar.gz
samba-528c150d558fbd239c3d8e6b466879a5a5de76c6.tar.bz2
samba-528c150d558fbd239c3d8e6b466879a5a5de76c6.zip
s3: Remove a pointless else branch
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/async_smb.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/source3/libsmb/async_smb.c b/source3/libsmb/async_smb.c
index bbabba30bc..ce225f4e00 100644
--- a/source3/libsmb/async_smb.c
+++ b/source3/libsmb/async_smb.c
@@ -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;
}