mirror of
https://github.com/curl/curl.git
synced 2026-08-24 11:33:33 +03:00
clang-tidy: drop some redundant conditions reported by misc-redundant-expression
Not enforced due to false positives, and because in cases a redundant expression (e.g. encapsulated in a macro) may be preferred. Ref: https://clang.llvm.org/extra/clang-tidy/checks/misc/redundant-expression.html Closes #20644
This commit is contained in:
parent
078b3031ea
commit
020f48d00c
4 changed files with 5 additions and 5 deletions
|
|
@ -3380,7 +3380,7 @@ static void multi_timeout(struct Curl_multi *multi,
|
|||
}
|
||||
|
||||
#ifdef CURLVERBOSE
|
||||
if(data && CURL_TRC_TIMER_is_verbose(data)) {
|
||||
if(CURL_TRC_TIMER_is_verbose(data)) {
|
||||
struct Curl_llist_node *e = Curl_llist_head(&data->state.timeoutlist);
|
||||
if(e) {
|
||||
struct time_node *n = Curl_node_elem(e);
|
||||
|
|
@ -3954,7 +3954,7 @@ struct Curl_easy *Curl_multi_get_easy(struct Curl_multi *multi,
|
|||
uint32_t mid)
|
||||
{
|
||||
struct Curl_easy *data = Curl_uint32_tbl_get(&multi->xfers, mid);
|
||||
if(data && GOOD_EASY_HANDLE(data))
|
||||
if(GOOD_EASY_HANDLE(data))
|
||||
return data;
|
||||
CURL_TRC_M(multi->admin, "invalid easy handle in xfer table for mid=%u",
|
||||
mid);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue