summaryrefslogtreecommitdiff
path: root/src/wispr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/wispr.c')
-rw-r--r--src/wispr.c6
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)