git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
411c52a
)
s3: Remove a pointless if-statement
author
Volker Lendecke
<vl@samba.org>
Mon, 6 Jun 2011 15:03:06 +0000
(17:03 +0200)
committer
Volker Lendecke
<vlendec@samba.org>
Mon, 6 Jun 2011 16:21:17 +0000
(18:21 +0200)
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
source3/libsmb/async_smb.c
patch
|
blob
|
history
diff --git
a/source3/libsmb/async_smb.c
b/source3/libsmb/async_smb.c
index 8fdcac47a9b4f2be3bb88c6350cde195d375bb8a..2ce641094fae214d3b839396a19cd97b2b96c426 100644
(file)
--- 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