Module Name: src
Committed By: joerg
Date: Thu Feb 27 01:30:42 UTC 2014
Modified Files:
src/sys/dev/pci: if_ti.c
Log Message:
Remove impossible checks.
To generate a diff of this commit:
cvs rdiff -u -r1.91 -r1.92 src/sys/dev/pci/if_ti.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/pci/if_ti.c
diff -u src/sys/dev/pci/if_ti.c:1.91 src/sys/dev/pci/if_ti.c:1.92
--- src/sys/dev/pci/if_ti.c:1.91 Sat Oct 27 17:18:34 2012
+++ src/sys/dev/pci/if_ti.c Thu Feb 27 01:30:42 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: if_ti.c,v 1.91 2012/10/27 17:18:34 chs Exp $ */
+/* $NetBSD: if_ti.c,v 1.92 2014/02/27 01:30:42 joerg Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
@@ -81,7 +81,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_ti.c,v 1.91 2012/10/27 17:18:34 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ti.c,v 1.92 2014/02/27 01:30:42 joerg Exp $");
#include "opt_inet.h"
@@ -484,9 +484,6 @@ ti_handle_events(struct ti_softc *sc)
{
struct ti_event_desc *e;
- if (sc->ti_rdata->ti_event_ring == NULL)
- return;
-
while (sc->ti_ev_saved_considx != sc->ti_ev_prodidx.ti_idx) {
e = &sc->ti_rdata->ti_event_ring[sc->ti_ev_saved_considx];
switch (TI_EVENT_EVENT(e)) {
@@ -1010,9 +1007,6 @@ ti_free_tx_ring(struct ti_softc *sc)
int i;
struct txdmamap_pool_entry *dma;
- if (sc->ti_rdata->ti_tx_ring == NULL)
- return;
-
for (i = 0; i < TI_TX_RING_CNT; i++) {
if (sc->ti_cdata.ti_tx_chain[i] != NULL) {
m_freem(sc->ti_cdata.ti_tx_chain[i]);