Source-Changes-HG archive

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

[src-draft/trunk]: src/sys/dev/usb Remove unnecessary double handling of the ...



details:   https://anonhg.NetBSD.org/src-all/rev/1783f564cfe4
branches:  trunk
changeset: 370214:1783f564cfe4
user:      Nathanial Sloss <nat%netbsd.org@localhost>
date:      Sun May 03 12:39:32 2020 +1000

description:
Remove unnecessary double handling of the rx_free_list.

diffstat:

 sys/dev/usb/if_urtwn.c |  6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)

diffs (16 lines):

diff -r a12093193224 -r 1783f564cfe4 sys/dev/usb/if_urtwn.c
--- a/sys/dev/usb/if_urtwn.c    Sun May 03 12:38:32 2020 +1000
+++ b/sys/dev/usb/if_urtwn.c    Sun May 03 12:39:32 2020 +1000
@@ -2974,12 +2974,6 @@
        DPRINTFN(DBG_FN|DBG_RX, ("%s: %s: status=%d\n",
            device_xname(sc->sc_dev), __func__, status));
 
-       mutex_enter(&sc->sc_rx_mtx);
-       TAILQ_REMOVE(&sc->rx_free_list[pidx], data, next);
-       TAILQ_INSERT_TAIL(&sc->rx_free_list[pidx], data, next);
-       /* Put this Rx buffer back to our free list. */
-       mutex_exit(&sc->sc_rx_mtx);
-
        if (__predict_false(status != USBD_NORMAL_COMPLETION)) {
                if (status == USBD_STALLED)
                        usbd_clear_endpoint_stall_async(sc->rx_pipe[pidx]);



Home | Main Index | Thread Index | Old Index