mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-08-31 14:25:41 +00:00
Add an else clause to avoid redundant test
This commit is contained in:
@@ -109,7 +109,7 @@ void discover_interfaces ()
|
|||||||
LLADDR (foo), foo -> sdl_alen);
|
LLADDR (foo), foo -> sdl_alen);
|
||||||
lp -> next = interface_links;
|
lp -> next = interface_links;
|
||||||
interface_links = lp;
|
interface_links = lp;
|
||||||
}
|
} else
|
||||||
#endif /* AF_LINK */
|
#endif /* AF_LINK */
|
||||||
|
|
||||||
if (ifp -> ifr_addr.sa_family == AF_INET) {
|
if (ifp -> ifr_addr.sa_family == AF_INET) {
|
||||||
|
@@ -109,7 +109,7 @@ void discover_interfaces ()
|
|||||||
LLADDR (foo), foo -> sdl_alen);
|
LLADDR (foo), foo -> sdl_alen);
|
||||||
lp -> next = interface_links;
|
lp -> next = interface_links;
|
||||||
interface_links = lp;
|
interface_links = lp;
|
||||||
}
|
} else
|
||||||
#endif /* AF_LINK */
|
#endif /* AF_LINK */
|
||||||
|
|
||||||
if (ifp -> ifr_addr.sa_family == AF_INET) {
|
if (ifp -> ifr_addr.sa_family == AF_INET) {
|
||||||
|
Reference in New Issue
Block a user