From a9fbdaf46b23db5c598bf33d6bc5c4555b06e674 Mon Sep 17 00:00:00 2001 From: iphydf Date: Wed, 31 Aug 2016 20:40:20 +0100 Subject: Do not use `else` after `return`. http://llvm.org/docs/CodingStandards.html#use-early-exits-and-continue-to-simplify-code --- toxcore/LAN_discovery.c | 1 - 1 file changed, 1 deletion(-) (limited to 'toxcore/LAN_discovery.c') diff --git a/toxcore/LAN_discovery.c b/toxcore/LAN_discovery.c index ab28f612..4edc960a 100644 --- a/toxcore/LAN_discovery.c +++ b/toxcore/LAN_discovery.c @@ -299,7 +299,6 @@ int LAN_ip(IP ip) if ((ip4.uint8[0] == 100) && ((ip4.uint8[1] & 0xC0) == 0x40)) { return 0; } - } else if (ip.family == AF_INET6) { /* autogenerated for each interface: FE80::* (up to FEBF::*) -- cgit v1.2.3