summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormmcc <mmcc@openbsd.org>2016-03-10 23:18:56 +0000
committermmcc <mmcc@openbsd.org>2016-03-10 23:18:56 +0000
commitb8202519c228df514ced47d73c28b28de8a8fcbc (patch)
tree3df97628fcf00e0e9cc94f63bf7e8fa78417a957
parentRemove VAX-specific bits of libm manpages. (diff)
downloadwireguard-openbsd-b8202519c228df514ced47d73c28b28de8a8fcbc.tar.xz
wireguard-openbsd-b8202519c228df514ced47d73c28b28de8a8fcbc.zip
don't check stack-allocated arrays against NULL
ok mpi@
-rw-r--r--sys/dev/ic/ti.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/dev/ic/ti.c b/sys/dev/ic/ti.c
index 13e7423b647..3519dcc5b55 100644
--- a/sys/dev/ic/ti.c
+++ b/sys/dev/ic/ti.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ti.c,v 1.22 2015/11/25 03:09:58 dlg Exp $ */
+/* $OpenBSD: ti.c,v 1.23 2016/03/10 23:18:56 mmcc Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
@@ -484,9 +484,6 @@ ti_handle_events(struct ti_softc *sc)
struct ti_event_desc *e;
struct ifnet *ifp = &sc->arpcom.ac_if;
- 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)) {
@@ -847,9 +844,6 @@ ti_free_tx_ring(struct ti_softc *sc)
int i;
struct ti_txmap_entry *entry;
- 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]);