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 0033c00..23dd252 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);