summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-06-06 17:03:06 +0200
committerVolker Lendecke <vlendec@samba.org>2011-06-06 18:21:17 +0200
commit976a43c5aac7a1b972efc1a4f600013b789eabaa (patch)
tree1713842db3c69216574791e292d71077ffab2f88 /source3/libsmb
parent411c52aba33a01afc5a2824183f5ebdaa144ab49 (diff)
downloadsamba-976a43c5aac7a1b972efc1a4f600013b789eabaa.tar.gz
samba-976a43c5aac7a1b972efc1a4f600013b789eabaa.tar.bz2
samba-976a43c5aac7a1b972efc1a4f600013b789eabaa.zip
s3: Remove a pointless if-statement
We are here only if we have more than one num_pending Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Mon Jun 6 18:21:17 CEST 2011 on sn-devel-104
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/async_smb.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/libsmb/async_smb.c b/source3/libsmb/async_smb.c
index 8fdcac47a9..2ce641094f 100644
--- a/source3/libsmb/async_smb.c
+++ b/source3/libsmb/async_smb.c
@@ -180,9 +180,7 @@ void cli_smb_req_unset_pending(struct tevent_req *req)
/*
* Remove ourselves from the cli->pending array
*/
- if (num_pending > 1) {
- cli->pending[i] = cli->pending[num_pending-1];
- }
+ cli->pending[i] = cli->pending[num_pending-1];
/*
* No NULL check here, we're shrinking by sizeof(void *), and