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/1d020d99c348
branches:  trunk
changeset: 362083:1d020d99c348
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 90c5e10693ed -r 1d020d99c348 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
@@ -2973,12 +2973,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