Skip to content

Commit

Permalink
back out the previous commit to if_qflush().
Browse files Browse the repository at this point in the history
it was intended as a safety measure in case if_qflush() is called for ALTQ.
but it can be detected at compile time and the code isn't necessary.
  • Loading branch information
kjc committed Dec 20, 2000
1 parent 5e99b75 commit 63f958e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions netbsd/sys/net/if.c
Expand Up @@ -801,10 +801,6 @@ if_qflush(ifq)
{
struct mbuf *m, *n;

#ifdef ALTQ
if (ALTQ_IS_ENABLED((struct ifaltq *)ifq))
ALTQ_PURGE((struct ifaltq *)ifq);
#endif
n = ifq->ifq_head;
while ((m = n) != NULL) {
n = m->m_act;
Expand Down
4 changes: 0 additions & 4 deletions openbsd/sys/net/if.c
Expand Up @@ -658,10 +658,6 @@ if_qflush(ifq)
{
register struct mbuf *m, *n;

#ifdef ALTQ
if (ALTQ_IS_ENABLED((struct ifaltq *)ifq))
ALTQ_PURGE((struct ifaltq *)ifq);
#endif
n = ifq->ifq_head;
while ((m = n) != NULL) {
n = m->m_act;
Expand Down

0 comments on commit 63f958e

Please sign in to comment.