From: Mark Wooding Date: Wed, 01 Feb 2006 11:44:39 GMT Subject: [PATCH 7/9] http-fetch: Tidy control flow in process_alternate_response Message-ID: <20060201114439.5042.20761.stgit@metalzone.distorted.org.uk> In-Reply-To: <20060201112822.5042.41256.stgit@metalzone.distorted.org.uk> From: Mark Wooding It's a bit convoluted. Tidy it up. Signed-off-by: Mark Wooding --- http-fetch.c | 7 ++----- 1 files changed, 2 insertions(+), 5 deletions(-) diff --git a/http-fetch.c b/http-fetch.c index f1aac14..4aa5a11 100644 --- a/http-fetch.c +++ b/http-fetch.c @@ -468,12 +468,9 @@ static void process_alternates_response( if (!slot->in_use) active_requests++; slot->in_use |= SLOTUSE_ACTIVE; - if (start_active_slot(slot)) { - return; - } else { + if (!start_active_slot(slot)) got_alternates = -1; - return; - } + return; } } else if (slot->curl_result != CURLE_OK) { if (slot->http_code != 404 &&