agent: Simplify loop exit handling

This commit is contained in:
Marcel Holtmann 2017-07-18 08:37:21 +02:00
parent 653019c263
commit df911c0cf6
1 changed files with 2 additions and 4 deletions

View File

@ -366,10 +366,8 @@ bool agent_request_cancel(unsigned int req_id, int reason)
request = l_queue_remove_if(agent->requests, find_request, request = l_queue_remove_if(agent->requests, find_request,
L_UINT_TO_PTR(req_id)); L_UINT_TO_PTR(req_id));
if (!request) if (request)
continue; break;
break;
} }
if (!request) if (!request)