diff mbox series

[2/2] qmimodem: Remove the final bits of glib

Message ID 20240223173552.31622-2-steve.schrock@getcruise.com (mailing list archive)
State Accepted
Commit f2fa9547c4a7bb7aa061d924e3ca5320a9eafef2
Headers show
Series [1/2] qmimodem: Use l_io instead of GIOChannel | expand

Commit Message

Steve Schrock Feb. 23, 2024, 5:35 p.m. UTC
---
 drivers/qmimodem/qmi.c | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)
diff mbox series

Patch

diff --git a/drivers/qmimodem/qmi.c b/drivers/qmimodem/qmi.c
index 27615275..910e27d3 100644
--- a/drivers/qmimodem/qmi.c
+++ b/drivers/qmimodem/qmi.c
@@ -34,7 +34,6 @@ 
 #include <string.h>
 
 #include <ell/ell.h>
-#include <glib.h>
 
 #include <ofono/log.h>
 
@@ -663,7 +662,7 @@  static bool can_write_data(struct l_io *io, void *user_data)
 	return false;
 }
 
-static void write_watch_destroy(gpointer user_data)
+static void write_watch_destroy(void *user_data)
 {
 	struct qmi_device *device = user_data;
 
@@ -895,7 +894,7 @@  static void __qmi_device_discovery_started(struct qmi_device *device,
 static void __qmi_device_discovery_complete(struct qmi_device *device,
 						struct discovery *d)
 {
-	if (l_queue_remove(device->discovery_queue, d) != TRUE)
+	if (!l_queue_remove(device->discovery_queue, d))
 		return;
 
 	__discovery_free(d);
@@ -1374,7 +1373,7 @@  static void service_create_shared_pending_reply(struct qmi_device *device,
 	l_queue_destroy(shared, NULL);
 }
 
-static void service_create_shared_data_free(gpointer user_data)
+static void service_create_shared_data_free(void *user_data)
 {
 	struct service_create_shared_data *data = user_data;
 
@@ -1564,7 +1563,7 @@  struct qmux_client_create_data {
 	uint16_t tid;
 };
 
-static void qmux_client_create_data_free(gpointer user_data)
+static void qmux_client_create_data_free(void *user_data)
 {
 	struct qmux_client_create_data *data = user_data;
 
@@ -1743,7 +1742,7 @@  static void qmi_device_qmux_client_release(struct qmi_device *device,
 	__request_submit(device, req);
 }
 
-static void qmux_shutdown_destroy(gpointer user_data)
+static void qmux_shutdown_destroy(void *user_data)
 {
 	struct qmi_device_qmux *qmux = user_data;