Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb Remove some unnecessary cleanup.



details:   https://anonhg.NetBSD.org/src/rev/3794c175c2f4
branches:  trunk
changeset: 480665:3794c175c2f4
user:      augustss <augustss%NetBSD.org@localhost>
date:      Mon Jan 17 13:25:22 2000 +0000

description:
Remove some unnecessary cleanup.

diffstat:

 sys/dev/usb/if_kue.c |  11 ++---------
 1 files changed, 2 insertions(+), 9 deletions(-)

diffs (46 lines):

diff -r 7f74c9cf6552 -r 3794c175c2f4 sys/dev/usb/if_kue.c
--- a/sys/dev/usb/if_kue.c      Mon Jan 17 13:23:05 2000 +0000
+++ b/sys/dev/usb/if_kue.c      Mon Jan 17 13:25:22 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_kue.c,v 1.1 2000/01/17 01:38:43 augustss Exp $      */
+/*     $NetBSD: if_kue.c,v 1.2 2000/01/17 13:25:22 augustss Exp $      */
 /*
  * Copyright (c) 1997, 1998, 1999, 2000
  *     Bill Paul <wpaul%ee.columbia.edu@localhost>.  All rights reserved.
@@ -105,7 +105,6 @@
 #include <net/if.h>
 #include <net/if_arp.h>
 #include <net/if_dl.h>
-#include <net/if_media.h>
 
 #if defined(__NetBSD__) || defined(__OpenBSD__)
 #include <net/if_ether.h>
@@ -748,7 +747,7 @@
        return (EBUSY);
 #endif
 
-#endif
+#endif /* defined(__NetBSD__) || defined(__OpenBSD__) */
 }
 
 #if defined(__NetBSD__) || defined(__OpenBSD__)
@@ -1455,9 +1454,6 @@
 
        /* Free RX resources. */
        for (i = 0; i < KUE_RX_LIST_CNT; i++) {
-               if (sc->kue_cdata.kue_rx_chain[i].kue_buf != NULL) {
-                       sc->kue_cdata.kue_rx_chain[i].kue_buf = NULL;
-               }
                if (sc->kue_cdata.kue_rx_chain[i].kue_mbuf != NULL) {
                        m_freem(sc->kue_cdata.kue_rx_chain[i].kue_mbuf);
                        sc->kue_cdata.kue_rx_chain[i].kue_mbuf = NULL;
@@ -1470,9 +1466,6 @@
 
        /* Free TX resources. */
        for (i = 0; i < KUE_TX_LIST_CNT; i++) {
-               if (sc->kue_cdata.kue_tx_chain[i].kue_buf != NULL) {
-                       sc->kue_cdata.kue_tx_chain[i].kue_buf = NULL;
-               }
                if (sc->kue_cdata.kue_tx_chain[i].kue_mbuf != NULL) {
                        m_freem(sc->kue_cdata.kue_tx_chain[i].kue_mbuf);
                        sc->kue_cdata.kue_tx_chain[i].kue_mbuf = NULL;



Home | Main Index | Thread Index | Old Index