Coalesce two if statements that check for the same thing.
authorGuus Sliepen <guus@tinc-vpn.org>
Sat, 4 Jul 2015 15:51:05 +0000 (17:51 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Sat, 4 Jul 2015 15:51:05 +0000 (17:51 +0200)
src/net_setup.c

index 0033c008cbf28a25c9cb968e4ef25a4356da237a..23dd2521c74b465cdc64405ea79b3f821e3040aa 100644 (file)
@@ -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);