Style: Repeat for drivers

This commit is contained in:
Denis Kenzior 2009-12-17 21:44:09 -06:00
parent 57512ad924
commit 6cb038fafb
5 changed files with 12 additions and 6 deletions

View File

@ -489,8 +489,9 @@ static void at_list_charsets_cb(gboolean ok, GAtResult *result,
"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,

View File

@ -149,8 +149,9 @@ static void at_csca_query_cb(gboolean ok, GAtResult *result, gpointer user_data)
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';

View File

@ -983,9 +983,10 @@ static void ciev_callsetup_notify(struct ofono_voicecall *vc,
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;
@ -1063,8 +1064,9 @@ static void ciev_callheld_notify(struct ofono_voicecall *vc,
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;

View File

@ -313,8 +313,9 @@ static void owancall_notifier(GAtResult *result, gpointer user_data)
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;

View File

@ -183,8 +183,9 @@ static void mbm_state_changed(struct ofono_gprs_context *gc, int state)
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;