s3: Remove a pointless if-statement
authorVolker Lendecke <vl@samba.org>
Mon, 6 Jun 2011 15:03:06 +0000 (17:03 +0200)
committerVolker 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

index 8fdcac47a9b4f2be3bb88c6350cde195d375bb8a..2ce641094fae214d3b839396a19cd97b2b96c426 100644 (file)
@@ -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