[PATCH 2/6] gobi: fix start_service_requests() return type
Ivaylo Dimitrov <[email protected]> Fri, 25 Jul 2025 15:19:50 +0300
| Newsgroups | dev.linux.lists.ofono |
|---|---|
| Message-ID | <[email protected]> |
No need to change bool->uint32_t
---
plugins/gobi.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/plugins/gobi.c b/plugins/gobi.c
index 027c4dba..24c68fde 100644
--- a/plugins/gobi.c
+++ b/plugins/gobi.c
@@ -527,7 +527,7 @@ error:
shutdown_device(modem);
}
-static uint32_t start_service_requests(struct ofono_modem *modem)
+static bool start_service_requests(struct ofono_modem *modem)
{
struct gobi_data *data = ofono_modem_get_data(modem);
unsigned int i;
@@ -570,7 +570,7 @@ static void rmnet_get_interfaces_cb(int error, unsigned int n_interfaces,
sizeof(struct rmnet_ifinfo) * n_interfaces);
data->n_premux = n_interfaces;
- if (start_service_requests(modem) > 0)
+ if (start_service_requests(modem))
return;
error:
shutdown_device(modem);
@@ -618,7 +618,7 @@ static void enable_set_mtu_cb(int error, uint16_t type,
goto error;
}
- if (start_service_requests(modem) > 0)
+ if (start_service_requests(modem))
return;
error:
shutdown_device(modem);
--
2.25.1