summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_age.c
diff options
context:
space:
mode:
authorKevin Lo <kevlo@cvs.openbsd.org>2011-09-21 07:09:20 +0000
committerKevin Lo <kevlo@cvs.openbsd.org>2011-09-21 07:09:20 +0000
commit6f069f58af8e540595c27cc760347db8d27a3630 (patch)
tree75719c4d67391aa67a69342bb78f26b14e33bf4a /sys/dev/pci/if_age.c
parent1caaa787f3ad98b0cab715388f5e51c90c9cda66 (diff)
Some minor clean up to the _start funtions to make the code read a little
better. No functional change. From Brad
Diffstat (limited to 'sys/dev/pci/if_age.c')
-rw-r--r--sys/dev/pci/if_age.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/pci/if_age.c b/sys/dev/pci/if_age.c
index 278801add5d..5895dd97df2 100644
--- a/sys/dev/pci/if_age.c
+++ b/sys/dev/pci/if_age.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_age.c,v 1.17 2011/09/15 01:51:40 kevlo Exp $ */
+/* $OpenBSD: if_age.c,v 1.18 2011/09/21 07:09:19 kevlo Exp $ */
/*-
* Copyright (c) 2008, Pyun YongHyeon <yongari@FreeBSD.org>
@@ -989,12 +989,12 @@ age_start(struct ifnet *ifp)
* for the NIC to drain the ring.
*/
if (age_encap(sc, &m_head)) {
- if (m_head == NULL) {
+ if (m_head == NULL)
ifp->if_oerrors++;
- break;
+ else {
+ IF_PREPEND(&ifp->if_snd, m_head);
+ ifp->if_flags |= IFF_OACTIVE;
}
- IF_PREPEND(&ifp->if_snd, m_head);
- ifp->if_flags |= IFF_OACTIVE;
break;
}
enq = 1;