krb5_locator: Slightly simplify code
authorVolker Lendecke <vl@samba.org>
Thu, 13 Feb 2014 13:19:26 +0000 (13:19 +0000)
committerJeremy Allison <jra@samba.org>
Thu, 20 Feb 2014 19:43:08 +0000 (11:43 -0800)
This makes it a bit easier to read for me

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Kai Blin <kai@samba.org>
nsswitch/winbind_krb5_locator.c

index 385a156b945c783ebd98576d78bc0e453ac6c615..91a2d64d84c4eafd2b37e642572b27d984546f26 100644 (file)
@@ -142,11 +142,10 @@ static int smb_krb5_locator_lookup_sanity_check(enum locate_service_type svc,
        switch (family) {
                case AF_UNSPEC:
                case AF_INET:
        switch (family) {
                case AF_UNSPEC:
                case AF_INET:
-                       break;
 #if defined(HAVE_IPV6)
                case AF_INET6:
 #if defined(HAVE_IPV6)
                case AF_INET6:
-                       break;
 #endif
 #endif
+                       break;
                default:
                        return EINVAL;
        }
                default:
                        return EINVAL;
        }