X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;f=tunnel.c;h=b6e902a1fdaacd53ef536611a95465abcf1d97d2;hb=41a40733dc80946841c9241ec56a4670a5943709;hp=e756973d099012c42783dd38f26f5f101ac29465;hpb=395199fcd4a1dbf8f52f13ec3e19ff568958e8e7;p=project%2Fnetifd.git 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);