diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2012-12-01 09:55:04 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2012-12-01 09:55:04 +0000 |
commit | 42fdbab24c29f93fd5f74334afbf1e60f0431b44 (patch) | |
tree | e2608a981bea4041ed7ce984c584b0952c635392 /sys/dev/pci/if_txp.c | |
parent | 3e6fcd1934bc3f9d800d1fc56a993ebb66705191 (diff) |
Don't bother to zero initialize the if_capabilities field first and
then set the flags. Just set the flags as is done everywhere else.
ok sthen@
Diffstat (limited to 'sys/dev/pci/if_txp.c')
-rw-r--r-- | sys/dev/pci/if_txp.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/pci/if_txp.c b/sys/dev/pci/if_txp.c index 11e58db1641..df50e119bdb 100644 --- a/sys/dev/pci/if_txp.c +++ b/sys/dev/pci/if_txp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_txp.c,v 1.105 2012/11/23 18:40:30 gsoares Exp $ */ +/* $OpenBSD: if_txp.c,v 1.106 2012/12/01 09:55:03 brad Exp $ */ /* * Copyright (c) 2001 @@ -228,7 +228,6 @@ txp_attachhook(void *vsc) ifp->if_baudrate = IF_Mbps(10); IFQ_SET_MAXLEN(&ifp->if_snd, TX_ENTRIES); IFQ_SET_READY(&ifp->if_snd); - ifp->if_capabilities = 0; bcopy(sc->sc_dev.dv_xname, ifp->if_xname, IFNAMSIZ); txp_capabilities(sc); @@ -1924,7 +1923,7 @@ txp_capabilities(struct txp_softc *sc) sc->sc_tx_capability = ext->ext_1 & OFFLOAD_MASK; sc->sc_rx_capability = ext->ext_2 & OFFLOAD_MASK; - ifp->if_capabilities |= IFCAP_VLAN_MTU; + ifp->if_capabilities = IFCAP_VLAN_MTU; #if NVLAN > 0 if (rsp->rsp_par2 & rsp->rsp_par3 & OFFLOAD_VLAN) { |