Use IFADDR_EMPTY().
(This driver should go away, comments indicate that it does not even compile.)
This commit is contained in:
parent
7d67c53f8d
commit
550024b13d
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: if_hp.c,v 1.42 2007/10/19 12:00:17 ad Exp $ */
|
||||
/* $NetBSD: if_hp.c,v 1.43 2007/12/05 18:23:23 dyoung Exp $ */
|
||||
|
||||
/* XXX THIS DRIVER IS BROKEN. IT WILL NOT EVEN COMPILE. */
|
||||
|
||||
|
@ -80,7 +80,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: if_hp.c,v 1.42 2007/10/19 12:00:17 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: if_hp.c,v 1.43 2007/12/05 18:23:23 dyoung Exp $");
|
||||
|
||||
#include "hp.h"
|
||||
#if NHP > 0
|
||||
|
@ -475,7 +475,7 @@ hpinit(unit)
|
|||
char *cp;
|
||||
int hpc = ns->ns_port;
|
||||
|
||||
if (ifp->if_addrlist == (struct ifaddr *) 0)
|
||||
if (IFADDR_EMPTY(ifp))
|
||||
return;
|
||||
if (ifp->if_flags & IFF_RUNNING)
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue