diff options
author | Daniel Stenberg <daniel@haxx.se> | 2014-10-23 22:46:10 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2014-10-24 08:23:19 +0200 |
commit | 65db980106d38defee8782373485d9085497b28e (patch) | |
tree | 2aba6a4fc14d0f3a8aaecc3347282cde606c4833 /lib | |
parent | 8e34d3f9efd046ed0fe9eb0ee859959624df6b0f (diff) |
Curl_pp_flushsend: skip superfluous assignment
Detected by cppcheck.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pingpong.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/pingpong.c b/lib/pingpong.c index adfb50a63..121693daa 100644 --- a/lib/pingpong.c +++ b/lib/pingpong.c @@ -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; |