`if ((status = foo()) != OK) return false;' doesn't need to set local
variable status.
curl_easy_setopt(curl, CURLOPT_DEBUGDATA, ctx->log);
}
curl_easy_setopt(curl, CURLOPT_DEBUGDATA, ctx->log);
}
- if ((status = curl_easy_setopt(curl, CURLOPT_URL, url)) != CURLE_OK) {
+ if (curl_easy_setopt(curl, CURLOPT_URL, url) != CURLE_OK) {
- if ((status = curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE,
- &ctx->res_code)) != CURLE_OK
- || (status = curl_easy_getinfo(curl, CURLINFO_CONTENT_TYPE,
- &ctx->content_type)) != CURLE_OK) {
+ if (curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE,
+ &ctx->res_code) != CURLE_OK
+ || curl_easy_getinfo(curl, CURLINFO_CONTENT_TYPE,
+ &ctx->content_type) != CURLE_OK) {