From 46a34f1e4fbee9e4a805bbf5d85646c12a4391dc Mon Sep 17 00:00:00 2001 From: Pavel Reichl Date: Fri, 15 Dec 2023 19:20:33 +0100 Subject: [PATCH] engines/http: Drop unused varible Signed-off-by: Pavel Reichl --- engines/http.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/engines/http.c b/engines/http.c index 83cfe8bb71..001479b055 100644 --- a/engines/http.c +++ b/engines/http.c @@ -640,7 +640,6 @@ static enum fio_q_status fio_http_queue(struct thread_data *td, char url[1024]; long status; CURLcode res; - int r = -1; fio_ro_check(td, io_u); memset(&_curl_stream, 0, sizeof(_curl_stream)); @@ -712,7 +711,7 @@ static enum fio_q_status fio_http_queue(struct thread_data *td, log_err("WARNING: Only DDIR_READ/DDIR_WRITE/DDIR_TRIM are supported!\n"); err: - io_u->error = r; + io_u->error = -1; td_verror(td, io_u->error, "transfer"); out: curl_slist_free_all(slist);