diff options
author | 2015-09-18 11:24:15 +0000 | |
---|---|---|
committer | 2015-09-18 11:24:15 +0000 | |
commit | 0f7b78beb73378a59920d10d7081b10a74e78011 (patch) | |
tree | 68bea1933a395007d50b6c397053ae571ee24212 | |
parent | Fix an uninitialized variable found by Maxime Villard's Brainy. (diff) | |
download | wireguard-openbsd-0f7b78beb73378a59920d10d7081b10a74e78011.tar.xz wireguard-openbsd-0f7b78beb73378a59920d10d7081b10a74e78011.zip |
Remove unused variables, from Michael McConville.
ok stsp@
-rw-r--r-- | sys/dev/usb/if_urtwn.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/sys/dev/usb/if_urtwn.c b/sys/dev/usb/if_urtwn.c index d0913cbe34e..26acfce733d 100644 --- a/sys/dev/usb/if_urtwn.c +++ b/sys/dev/usb/if_urtwn.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_urtwn.c,v 1.51 2015/09/10 11:53:05 stsp Exp $ */ +/* $OpenBSD: if_urtwn.c,v 1.52 2015/09/18 11:24:15 mpi Exp $ */ /*- * Copyright (c) 2010 Damien Bergamini <damien.bergamini@free.fr> @@ -2713,7 +2713,7 @@ urtwn_r88e_dma_init(struct urtwn_softc *sc) { usb_interface_descriptor_t *id; uint32_t reg; - int nrempages, nqpages, nqueues = 1; + int nqueues = 1; int error; /* Initialize LLT table. */ @@ -2725,11 +2725,6 @@ urtwn_r88e_dma_init(struct urtwn_softc *sc) 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); urtwn_write_4(sc, R92C_RQPN, 0x808e000d); |