mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
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
This commit is contained in:
parent
411c52aba3
commit
976a43c5aa
@ -180,9 +180,7 @@ void cli_smb_req_unset_pending(struct tevent_req *req)
|
|||||||
/*
|
/*
|
||||||
* Remove ourselves from the cli->pending array
|
* 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
|
* No NULL check here, we're shrinking by sizeof(void *), and
|
||||||
|
Loading…
Reference in New Issue
Block a user