diff options
author | phk <phk@FreeBSD.org> | 2003-05-31 20:02:43 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-05-31 20:02:43 +0000 |
commit | 30d674a987396ff78de47b752f2f2f64244bb272 (patch) | |
tree | 67fe4b319f7ed88f88bab6290802e69545e5e11e | |
parent | d907c0f953077b063d08312f53850b2742598ee0 (diff) | |
download | FreeBSD-src-30d674a987396ff78de47b752f2f2f64244bb272.zip FreeBSD-src-30d674a987396ff78de47b752f2f2f64244bb272.tar.gz |
Remove unused variables.
Remove now unused pointer to ether header.
Remove break after return
Found by: FlexeLint
-rw-r--r-- | sys/pci/if_pcn.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/sys/pci/if_pcn.c b/sys/pci/if_pcn.c index 781924d..03d7fd7 100644 --- a/sys/pci/if_pcn.c +++ b/sys/pci/if_pcn.c @@ -486,7 +486,6 @@ pcn_probe(dev) break; default: return(ENXIO); - break; } device_set_desc(dev, t->pcn_name); return(0); @@ -726,11 +725,9 @@ static int pcn_list_rx_init(sc) struct pcn_softc *sc; { - struct pcn_list_data *ld; struct pcn_ring_data *cd; int i; - ld = sc->pcn_ldata; cd = &sc->pcn_cdata; for (i = 0; i < PCN_RX_LIST_CNT; i++) { @@ -793,7 +790,6 @@ static void pcn_rxeof(sc) struct pcn_softc *sc; { - struct ether_header *eh; struct mbuf *m; struct ifnet *ifp; struct pcn_rx_desc *cur_rx; @@ -832,7 +828,6 @@ pcn_rxeof(sc) /* No errors; receive the packet. */ ifp->if_ipackets++; - eh = mtod(m, struct ether_header *); m->m_len = m->m_pkthdr.len = cur_rx->pcn_rxlen - ETHER_CRC_LEN; m->m_pkthdr.rcvif = ifp; |