From: Guus Sliepen Date: Sat, 4 Jul 2015 15:51:05 +0000 (+0200) Subject: Coalesce two if statements that check for the same thing. X-Git-Tag: release-1.1pre12~111 X-Git-Url: https://git.tinc-vpn.org/git/browse?a=commitdiff_plain;h=36cec9af88909cb2cf012d609e5c4d8c444ddab9;p=tinc Coalesce two if statements that check for the same thing. --- diff --git a/src/net_setup.c b/src/net_setup.c index 0033c008..23dd2521 100644 --- a/src/net_setup.c +++ b/src/net_setup.c @@ -962,9 +962,8 @@ static bool setup_myself(void) { else if(!strcasecmp(type, "vde")) devops = vde_devops; #endif - } - if (type) free(type); + } get_config_bool(lookup_config(config_tree, "DeviceStandby"), &device_standby);