"phonebook is possible on this modem,"
" if this is in error, submit patches "
"to properly support this hardware");
- } else
+ } else {
goto error;
+ }
}
if (g_at_chat_send(pbd->chat, "AT+CPBS=?", cpbs_prefix,
if (number[0] == '+') {
number = number + 1;
sca.type = 145;
- } else
+ } else {
sca.type = 129;
+ }
strncpy(sca.number, number, OFONO_MAX_PHONE_NUMBER_LENGTH);
sca.number[OFONO_MAX_PHONE_NUMBER_LENGTH] = '\0';
call->status = CALL_STATUS_ACTIVE;
ofono_voicecall_notify(vc, call);
- } else
+ } else {
g_at_chat_send(vd->chat, "AT+CLCC", clcc_prefix,
clcc_poll_cb, vc, NULL);
+ }
break;
call->status = CALL_STATUS_HELD;
ofono_voicecall_notify(vc, call);
}
- } else if (callheld == 1)
+ } else if (callheld == 1) {
release_with_status(vc, CALL_STATUS_ACTIVE);
+ }
}
vd->cind_val[HFP_INDICATOR_CALLHELD] = value;
gcd->hso_state = HSO_NONE;
gcd->down_cb = NULL;
gcd->cb_data = NULL;
- } else
+ } else {
ofono_gprs_context_deactivated(gc, gcd->active_context);
+ }
gcd->active_context = 0;
break;
CALLBACK_WITH_FAILURE(gcd->up_cb, NULL, 0, NULL, NULL,
NULL, NULL, gcd->cb_data);
gcd->up_cb = NULL;
- } else
+ } else {
ofono_gprs_context_deactivated(gc, gcd->active_context);
+ }
gcd->mbm_state = MBM_NONE;
gcd->cb_data = NULL;