engines/http: Drop unused varible
authorPavel Reichl <preichl@redhat.com>
Fri, 15 Dec 2023 18:20:33 +0000 (19:20 +0100)
committerPavel Reichl <preichl@redhat.com>
Fri, 15 Dec 2023 20:14:37 +0000 (21:14 +0100)
Signed-off-by: Pavel Reichl <preichl@redhat.com>
engines/http.c

index 83cfe8bb711fadbec2c9df2a5943978228668b16..001479b055d5c82556c1f6348faa6bb842a7e40c 100644 (file)
@@ -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);