diff mbox series

[2/4] qmi: voicecall: Fix up code style violations

Message ID 20240422214058.3411417-2-denkenz@gmail.com (mailing list archive)
State Accepted
Commit 3c5ed8ec1e571a98142e99c0c67dd8fca590d54f
Headers show
Series [1/4] qmi: Remove redundant NULL check in qmi_param_new | expand

Commit Message

Denis Kenzior April 22, 2024, 9:40 p.m. UTC
Fix up some style violations:
 - > 80 character lines
 - Redundant parenthesis

Also, while here, fix up a typo: "informations" -> "information"
---
 drivers/qmimodem/voicecall.c | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)
diff mbox series

Patch

diff --git a/drivers/qmimodem/voicecall.c b/drivers/qmimodem/voicecall.c
index 24c4f3f175c3..5afa3a057a71 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)
-