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 Revert to previous. Don't device number of...



details:   https://anonhg.NetBSD.org/src-all/rev/9d2d81fdc1d5
branches:  trunk
changeset: 370208:9d2d81fdc1d5
user:      Nathanial Sloss <nat%netbsd.org@localhost>
date:      Sun May 03 07:36:44 2020 +1000

description:
Revert to previous. Don't device number of xfers by number of pipes.

diffstat:

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

diffs (21 lines):

diff -r 69c2ca6c5f9e -r 9d2d81fdc1d5 sys/dev/usb/if_urtwn.c
--- a/sys/dev/usb/if_urtwn.c    Sun May 03 07:12:57 2020 +1000
+++ b/sys/dev/usb/if_urtwn.c    Sun May 03 07:36:44 2020 +1000
@@ -834,7 +834,7 @@
 
        for (size_t j = 0; j < sc->rx_npipe; j++) {
                TAILQ_INIT(&sc->rx_free_list[j]);
-               for (i = 0; i < URTWN_RX_LIST_COUNT / sc->rx_npipe; i++) {
+               for (i = 0; i < URTWN_RX_LIST_COUNT; i++) {
                        data = &sc->rx_data[j][i];
 
                        data->sc = sc;  /* Backpointer for callbacks. */
@@ -891,7 +891,7 @@
        mutex_enter(&sc->sc_tx_mtx);
        for (size_t j = 0; j < sc->tx_npipe; j++) {
                TAILQ_INIT(&sc->tx_free_list[j]);
-               for (i = 0; i < URTWN_TX_LIST_COUNT / sc->tx_npipe; i++) {
+               for (i = 0; i < URTWN_TX_LIST_COUNT; i++) {
                        data = &sc->tx_data[j][i];
 
                        data->sc = sc;  /* Backpointer for callbacks. */



Home | Main Index | Thread Index | Old Index