Curl_pp_flushsend: skip superfluous assignment
Detected by cppcheck.
This commit is contained in:
@@ -476,10 +476,8 @@ CURLcode Curl_pp_flushsend(struct pingpong *pp)
|
|||||||
/* we have a piece of a command still left to send */
|
/* we have a piece of a command still left to send */
|
||||||
struct connectdata *conn = pp->conn;
|
struct connectdata *conn = pp->conn;
|
||||||
ssize_t written;
|
ssize_t written;
|
||||||
CURLcode result = CURLE_OK;
|
|
||||||
curl_socket_t sock = conn->sock[FIRSTSOCKET];
|
curl_socket_t sock = conn->sock[FIRSTSOCKET];
|
||||||
|
CURLcode result = Curl_write(conn, sock, pp->sendthis + pp->sendsize -
|
||||||
result = Curl_write(conn, sock, pp->sendthis + pp->sendsize -
|
|
||||||
pp->sendleft, pp->sendleft, &written);
|
pp->sendleft, pp->sendleft, &written);
|
||||||
if(result)
|
if(result)
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
Reference in New Issue
Block a user