transfer: skip extra assign

The 'result' variable already contains CURLE_OK at this point, no use in
setting it again. Pointed out by PVS.

Ref: #10929
Closes #10944
This commit is contained in:
Daniel Stenberg 2023-04-13 09:29:59 +02:00
parent 3f1d89ed24
commit 19c36f5ca3
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View 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));