diff options
author | Daniel Wagner <wagi@monom.org> | 2022-09-07 20:52:21 +0200 |
---|---|---|
committer | Daniel Wagner <wagi@monom.org> | 2022-09-07 20:56:37 +0200 |
commit | 415e8e4bb1573f4a6b57a5dcdc6e2400b0cc5934 (patch) | |
tree | 0837620f08af7b57877dc38d1740c121423cdb6a | |
parent | e6523511d736667e45877d588a64988e818a06fe (diff) | |
download | connman-415e8e4bb1573f4a6b57a5dcdc6e2400b0cc5934.tar.gz |
wispr: Simplify the IP version check
No need to be clever. There is IPv4 and IPv6 nothing else.
-rw-r--r-- | src/wispr.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/wispr.c b/src/wispr.c index a7562e84..a4372018 100644 --- a/src/wispr.c +++ b/src/wispr.c @@ -1033,12 +1033,8 @@ int __connman_wispr_start(struct connman_service *service, if (type == CONNMAN_IPCONFIG_TYPE_IPV4) wp_context = wispr_portal->ipv4_context; - else if (type == CONNMAN_IPCONFIG_TYPE_IPV6) + else wp_context = wispr_portal->ipv6_context; - else { - err = -EINVAL; - goto free_wp; - } /* If there is already an existing context, we wipe it */ if (wp_context) |