Index: if_urtwn.c
===================================================================
RCS file: /cvs/src/sys/dev/usb/if_urtwn.c,v
retrieving revision 1.51
diff -u -p -r1.51 if_urtwn.c
--- if_urtwn.c 10 Sep 2015 11:53:05 -0000 1.51
+++ if_urtwn.c 13 Sep 2015 21:30:32 -0000
@@ -2713,7 +2713,7 @@ urtwn_r88e_dma_init(struct urtwn_softc *
{
usb_interface_descriptor_t *id;
uint32_t reg;
- int nrempages, nqpages, nqueues = 1;
+ int nqueues = 1;
int error;
/* Initialize LLT table. */
@@ -2724,11 +2724,6 @@ urtwn_r88e_dma_init(struct urtwn_softc *
/* Get Tx queues to USB endpoints mapping. */
id = usbd_get_interface_descriptor(sc->sc_iface);
nqueues = id->bNumEndpoints - 1;
-
- /* Get the number of pages for each queue. */
- nqpages = (R92C_TX_PAGE_COUNT - R92C_PUBQ_NPAGES) / nqueues;
- /* The remaining pages are assigned to the high priority queue. */
- nrempages = (R92C_TX_PAGE_COUNT - R92C_PUBQ_NPAGES) % nqueues;
/* Set number of pages for normal priority queue. */
urtwn_write_2(sc, R92C_RQPN_NPQ, 0x000d);