Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci Remove impossible checks.



details:   https://anonhg.NetBSD.org/src/rev/e09af4bdcbcc
branches:  trunk
changeset: 327087:e09af4bdcbcc
user:      joerg <joerg%NetBSD.org@localhost>
date:      Thu Feb 27 01:30:42 2014 +0000

description:
Remove impossible checks.

diffstat:

 sys/dev/pci/if_ti.c |  10 ++--------
 1 files changed, 2 insertions(+), 8 deletions(-)

diffs (38 lines):

diff -r 1061ebee60f3 -r e09af4bdcbcc sys/dev/pci/if_ti.c
--- a/sys/dev/pci/if_ti.c       Thu Feb 27 01:30:18 2014 +0000
+++ b/sys/dev/pci/if_ti.c       Thu Feb 27 01:30:42 2014 +0000
@@ -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 @@
 {
        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 @@
        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]);



Home | Main Index | Thread Index | Old Index