aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2024-04-22 16:17:16 -0500
committerDenis Kenzior <denkenz@gmail.com>2024-04-22 17:26:12 -0500
commit3c5ed8ec1e571a98142e99c0c67dd8fca590d54f (patch)
treeb4cd6431874feaca2f7dc5d2edef3d258e86bae4
parente16edbd2bb51d2898f72c8e6d22800348ece3fe9 (diff)
downloadofono-3c5ed8ec1e571a98142e99c0c67dd8fca590d54f.tar.gz
qmi: voicecall: Fix up code style violations
Fix up some style violations: - > 80 character lines - Redundant parenthesis Also, while here, fix up a typo: "informations" -> "information"
-rw-r--r--drivers/qmimodem/voicecall.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/drivers/qmimodem/voicecall.c b/drivers/qmimodem/voicecall.c
index 24c4f3f17..5afa3a057 100644
--- a/drivers/qmimodem/voicecall.c
+++ b/drivers/qmimodem/voicecall.c
@@ -90,7 +90,7 @@ static bool ofono_call_match_by_id(const void *a, const void *b)
const struct ofono_call *call = a;
unsigned int id = L_PTR_TO_UINT(b);
- return (call->id == id);
+ return call->id == id;
}
static bool ofono_call_match_by_status(const void *a, const void *b)
@@ -294,7 +294,7 @@ static void all_call_status_ind(struct qmi_result *result, void *user_data)
}
if (!call_information->size) {
- DBG("No call informations received!");
+ DBG("No call information received!");
return;
}
@@ -370,9 +370,11 @@ static void all_call_status_ind(struct qmi_result *result, void *user_data)
call->direction = qmi_to_ofono_direction(call_info.direction);
call->type = 0; /* always voice */
- number_size = MIN(remote_party->number_size, OFONO_MAX_PHONE_NUMBER_LENGTH);
+ number_size = MIN(remote_party->number_size,
+ OFONO_MAX_PHONE_NUMBER_LENGTH);
tmp = l_strndup(remote_party->number, number_size);
- l_strlcpy(call->phone_number.number, tmp, sizeof(call->phone_number.number));
+ l_strlcpy(call->phone_number.number, tmp,
+ sizeof(call->phone_number.number));
l_free(tmp);
if (strlen(call->phone_number.number) > 0)
@@ -489,7 +491,8 @@ static void answer_cb(struct qmi_result *result, void *user_data)
CALLBACK_WITH_SUCCESS(cb, cbd->data);
}
-static void answer(struct ofono_voicecall *vc, ofono_voicecall_cb_t cb, void *data)
+static void answer(struct ofono_voicecall *vc,
+ ofono_voicecall_cb_t cb, void *data)
{
struct voicecall_data *vd = ofono_voicecall_get_data(vc);
struct cb_data *cbd;
@@ -679,4 +682,3 @@ static const struct ofono_voicecall_driver driver = {
};
OFONO_ATOM_DRIVER_BUILTIN(voicecall, qmimodem, &driver)
-