mirror of
https://github.com/curl/curl.git
synced 2026-07-23 08:07:16 +03:00
Curl_pp_flushsend: skip superfluous assignment
Detected by cppcheck.
This commit is contained in:
parent
8e34d3f9ef
commit
65db980106
1 changed files with 2 additions and 4 deletions
|
|
@ -476,11 +476,9 @@ CURLcode Curl_pp_flushsend(struct pingpong *pp)
|
|||
/* we have a piece of a command still left to send */
|
||||
struct connectdata *conn = pp->conn;
|
||||
ssize_t written;
|
||||
CURLcode result = CURLE_OK;
|
||||
curl_socket_t sock = conn->sock[FIRSTSOCKET];
|
||||
|
||||
result = Curl_write(conn, sock, pp->sendthis + pp->sendsize -
|
||||
pp->sendleft, pp->sendleft, &written);
|
||||
CURLcode result = Curl_write(conn, sock, pp->sendthis + pp->sendsize -
|
||||
pp->sendleft, pp->sendleft, &written);
|
||||
if(result)
|
||||
return result;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue