Skip to content

Commit

Permalink
Curl_pp_flushsend: skip superfluous assignment
Browse files Browse the repository at this point in the history
Detected by cppcheck.
  • Loading branch information
bagder committed Oct 24, 2014
1 parent 8e34d3f commit 65db980
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/pingpong.c
Expand Up @@ -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;

Expand Down

0 comments on commit 65db980

Please sign in to comment.