When applying the board-specific bits for the SMC 9332,
the mediasw has already been set to non-NULL, don't require it to be NULL.
This commit is contained in:
parent
b594044edd
commit
2c4d5c4f31
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: if_tlp_pci.c,v 1.118 2011/07/26 20:51:24 dyoung Exp $ */
|
||||
/* $NetBSD: if_tlp_pci.c,v 1.119 2011/11/10 20:12:48 jakllsch Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998, 1999, 2000, 2002 The NetBSD Foundation, Inc.
|
||||
|
@ -36,7 +36,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: if_tlp_pci.c,v 1.118 2011/07/26 20:51:24 dyoung Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: if_tlp_pci.c,v 1.119 2011/11/10 20:12:48 jakllsch Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -1380,9 +1380,6 @@ tlp_pci_smc_21140_quirks(struct tulip_pci_softc *psc, const uint8_t *enaddr)
|
|||
{
|
||||
struct tulip_softc *sc = &psc->sc_tulip;
|
||||
|
||||
if (sc->sc_mediasw != NULL) {
|
||||
return;
|
||||
}
|
||||
strcpy(psc->sc_tulip.sc_name, "SMC 9332DST");
|
||||
sc->sc_mediasw = &tlp_smc9332dst_mediasw;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue