]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
transfer: skip extra assign
authorDaniel Stenberg <daniel@haxx.se>
Thu, 13 Apr 2023 07:29:59 +0000 (09:29 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 13 Apr 2023 12:39:08 +0000 (14:39 +0200)
The 'result' variable already contains CURLE_OK at this point, no use in
setting it again. Pointed out by PVS.

Ref: #10929
Closes #10944

lib/transfer.c

index cb781833f7a6f2454b2b1cf2eb32263cfac57c8c..e9ab8fbf0951064f4e36bee18379e169a0b55fc6 100644 (file)
@@ -1235,7 +1235,6 @@ CURLcode Curl_readwrite(struct connectdata *conn,
 
   /* Now update the "done" boolean we return */
   *done = (0 == (k->keepon&(KEEP_RECVBITS|KEEP_SENDBITS))) ? TRUE : FALSE;
-  result = CURLE_OK;
 out:
   if(result)
     DEBUGF(infof(data, DMSG(data, "Curl_readwrite() -> %d"), result));