Skip to content

Commit

Permalink
engines/http: Drop unused varible
Browse files Browse the repository at this point in the history
Signed-off-by: Pavel Reichl <preichl@redhat.com>
  • Loading branch information
preichl committed Dec 15, 2023
1 parent 09f4a16 commit 46a34f1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions engines/http.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 46a34f1

Please sign in to comment.