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/9096bdaa89f8
branches: trunk
changeset: 986683:9096bdaa89f8
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 afb4ca8501a6 -r 9096bdaa89f8 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
@@ -2972,12 +2972,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