]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Add an else clause to avoid redundant test
authorTed Lemon <source@isc.org>
Thu, 16 May 1996 23:07:36 +0000 (23:07 +0000)
committerTed Lemon <source@isc.org>
Thu, 16 May 1996 23:07:36 +0000 (23:07 +0000)
common/dispatch.c
dispatch.c

index e7a84367395fc4336fa625438257dbcf2a8d4e81..154e115f3e69625bb4e116abcc1c5217f0801a28 100644 (file)
@@ -109,7 +109,7 @@ void discover_interfaces ()
                                LLADDR (foo), foo -> sdl_alen);
                        lp -> next = interface_links;
                        interface_links = lp;
-               }
+               } else
 #endif /* AF_LINK */
 
                if (ifp -> ifr_addr.sa_family == AF_INET) {
index e7a84367395fc4336fa625438257dbcf2a8d4e81..154e115f3e69625bb4e116abcc1c5217f0801a28 100644 (file)
@@ -109,7 +109,7 @@ void discover_interfaces ()
                                LLADDR (foo), foo -> sdl_alen);
                        lp -> next = interface_links;
                        interface_links = lp;
-               }
+               } else
 #endif /* AF_LINK */
 
                if (ifp -> ifr_addr.sa_family == AF_INET) {