1
0
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:
Volker Lendecke 2011-06-06 17:03:06 +02:00 committed by Volker Lendecke
parent 411c52aba3
commit 976a43c5aa

View File

@ -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