summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--tunnel.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/tunnel.c b/tunnel.c
index e756973..b6e902a 100644
--- a/tunnel.c
+++ b/tunnel.c
@@ -17,10 +17,8 @@ tunnel_set_state(struct device *dev, bool up)
if (up) {
ret = system_add_ip_tunnel(dev->ifname, tun->config);
- if (ret != 0) {
- perror("add_ip_tunnel");
+ if (ret != 0)
return ret;
- }
}
ret = tun->set_state(dev, up);