Commit 65db9801 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

Curl_pp_flushsend: skip superfluous assignment

Detected by cppcheck.
parent 8e34d3f9
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -476,10 +476,8 @@ 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 -
  CURLcode result = Curl_write(conn, sock, pp->sendthis + pp->sendsize -
                               pp->sendleft, pp->sendleft, &written);
  if(result)
    return result;