From 976a43c5aac7a1b972efc1a4f600013b789eabaa Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 6 Jun 2011 17:03:06 +0200 Subject: [PATCH] s3: Remove a pointless if-statement We are here only if we have more than one num_pending Autobuild-User: Volker Lendecke Autobuild-Date: Mon Jun 6 18:21:17 CEST 2011 on sn-devel-104 --- source3/libsmb/async_smb.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/source3/libsmb/async_smb.c b/source3/libsmb/async_smb.c index 8fdcac47a9b..2ce641094fa 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 -- 2.11.4.GIT