hfp: avoid warnings about rfcomm_cid #0

This commit is contained in:
Matthias Ringwald 2016-04-09 21:32:52 +02:00
parent 093577fadb
commit 724f400dd4
2 changed files with 2 additions and 0 deletions

View File

@ -1611,6 +1611,7 @@ static void hfp_ag_send_call_status(hfp_connection_t * hfp_connection, int call_
static void hfp_run_for_context(hfp_connection_t *hfp_connection){
if (!hfp_connection) return;
if (!hfp_connection->rfcomm_cid) return;
if (!rfcomm_can_send_packet_now(hfp_connection->rfcomm_cid)) {
rfcomm_request_can_send_now_event(hfp_connection->rfcomm_cid);
return;

View File

@ -584,6 +584,7 @@ static int call_setup_state_machine(hfp_connection_t * hfp_connection){
static void hfp_run_for_context(hfp_connection_t * hfp_connection){
if (!hfp_connection) return;
if (!hfp_connection->rfcomm_cid) return;
if (!rfcomm_can_send_packet_now(hfp_connection->rfcomm_cid)) return;
int done = hfp_hf_run_for_context_service_level_connection(hfp_connection);