]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
multi: fix "Useless Assignment"
authorDaniel Stenberg <daniel@haxx.se>
Tue, 29 Oct 2024 07:13:02 +0000 (08:13 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 29 Oct 2024 08:41:43 +0000 (09:41 +0100)
CodeSonar pointed out "This code assigns the variable the same value it
already had"

Follow-up to e77326403d3d27e7e

Closes #15441

lib/multi.c

index 9bf338e404ccf1b571fabee92e699c27d8169391..c2f7806e8d1279e5d714943d242304c48c8dfa07 100644 (file)
@@ -2303,7 +2303,6 @@ static CURLMcode state_do(struct Curl_easy *data,
     /* keep connection open for application to use the socket */
     connkeep(data->conn, "CONNECT_ONLY");
     multistate(data, MSTATE_DONE);
-    result = CURLE_OK;
     rc = CURLM_CALL_MULTI_PERFORM;
   }
   else {