Remove unused vars from if_urtwn.c

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Remove unused vars from if_urtwn.c

Michael McConville-2
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);

Reply | Threaded
Open this post in threaded view
|

Re: Remove unused vars from if_urtwn.c

Stefan Sperling-5
On Sun, Sep 13, 2015 at 05:31:10PM -0400, Michael McConville wrote:

> 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);

ok