diff mbox series

[v2,1/3] service: Leverage 'connman_service_is_default'.

Message ID 20231124174025.971512-2-gerickson@nuovations.com (mailing list archive)
State Not Applicable, archived
Headers show
Series service: Minor address_updated Changes | expand

Commit Message

Grant Erickson Nov. 24, 2023, 5:40 p.m. UTC
This leverages the recently-added 'connman_service_is_default' in
'address_updated' rather than duplicating the same logic from the former
in the latter.
---
 src/service.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/src/service.c b/src/service.c
index dd50b81a7e5a..b98ec00f808c 100644
--- a/src/service.c
+++ b/src/service.c
@@ -2239,7 +2239,7 @@  static void address_updated(struct connman_service *service,
 			enum connman_ipconfig_type type)
 {
 	if (is_connected(service->state) &&
-			service == connman_service_get_default()) {
+			connman_service_is_default(service)) {
 		nameserver_remove_all(service, type);
 		nameserver_add_all(service, type);
 		start_online_check(service, type);