Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic Delete some dead code.



details:   https://anonhg.NetBSD.org/src/rev/ba689dd9eb36
branches:  trunk
changeset: 568340:ba689dd9eb36
user:      dyoung <dyoung%NetBSD.org@localhost>
date:      Thu Jul 15 06:31:43 2004 +0000

description:
Delete some dead code.

Don't call back into the bus-specific code for resets any longer.
It does not seem to be necessary.

diffstat:

 sys/dev/ic/atw.c |  12 ++----------
 1 files changed, 2 insertions(+), 10 deletions(-)

diffs (40 lines):

diff -r 9b15710c9c4a -r ba689dd9eb36 sys/dev/ic/atw.c
--- a/sys/dev/ic/atw.c  Thu Jul 15 06:30:12 2004 +0000
+++ b/sys/dev/ic/atw.c  Thu Jul 15 06:31:43 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: atw.c,v 1.43 2004/07/15 06:30:12 dyoung Exp $  */
+/*     $NetBSD: atw.c,v 1.44 2004/07/15 06:31:43 dyoung Exp $  */
 
 /*-
  * Copyright (c) 1998, 1999, 2000, 2002, 2003, 2004 The NetBSD Foundation, Inc.
@@ -41,7 +41,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: atw.c,v 1.43 2004/07/15 06:30:12 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: atw.c,v 1.44 2004/07/15 06:31:43 dyoung Exp $");
 
 #include "bpfilter.h"
 
@@ -2627,9 +2627,6 @@
                if (status)
                        ATW_WRITE(sc, ATW_STSR, status);
 
-               if (sc->sc_intr_ack != NULL)
-                       (*sc->sc_intr_ack)(sc);
-
 #ifdef ATW_DEBUG
 #define PRINTINTR(flag) do { \
        if ((status & flag) != 0) { \
@@ -3298,11 +3295,6 @@
        if ((ifp->if_flags & (IFF_RUNNING|IFF_OACTIVE)) != IFF_RUNNING)
                return;
 
-#if 0 /* TBD ??? */
-       if ((sc->sc_flags & ATWF_LINK_UP) == 0 && ifp->if_snd.ifq_len < 10)
-               return;
-#endif
-
        /*
         * Remember the previous number of free descriptors and
         * the first descriptor we'll use.



Home | Main Index | Thread Index | Old Index