summaryrefslogtreecommitdiff
path: root/sys/dev/ic
diff options
context:
space:
mode:
authorTom Cosgrove <tom@cvs.openbsd.org>2016-09-02 09:04:57 +0000
committerTom Cosgrove <tom@cvs.openbsd.org>2016-09-02 09:04:57 +0000
commitd616c6cb7e84c9e5570d49687e071a336ace4526 (patch)
tree9097a19e9cbe65fa78af98864be4bd3b487e6eb4 /sys/dev/ic
parentcbb7b22563d66bd572f5595da67c01c3017c1eff (diff)
No need to set 'error' to 0 at the beginning of acx_encap(), as
we're only going to set it again 10 lines later. ok mpi@
Diffstat (limited to 'sys/dev/ic')
-rw-r--r--sys/dev/ic/acx.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/dev/ic/acx.c b/sys/dev/ic/acx.c
index 991a820238c..8fef75e2ed7 100644
--- a/sys/dev/ic/acx.c
+++ b/sys/dev/ic/acx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acx.c,v 1.118 2016/04/13 10:49:26 mpi Exp $ */
+/* $OpenBSD: acx.c,v 1.119 2016/09/02 09:04:56 tom Exp $ */
/*
* Copyright (c) 2006 Jonathan Gray <jsg@openbsd.org>
@@ -2197,8 +2197,6 @@ acx_encap(struct acx_softc *sc, struct acx_txbuf *txbuf, struct mbuf *m,
if (txbuf->tb_mbuf != NULL)
panic("free TX buf has mbuf installed");
- error = 0;
-
if (m->m_pkthdr.len > MCLBYTES) {
printf("%s: mbuf too big\n", ifp->if_xname);
error = E2BIG;