Module Name: src Committed By: skrll Date: Thu Nov 14 12:40:51 UTC 2013
Modified Files: src/sys/external/bsd/dwc2/dist: dwc2_hcdqueue.c Log Message: Remove unused variable. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/sys/external/bsd/dwc2/dist/dwc2_hcdqueue.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/external/bsd/dwc2/dist/dwc2_hcdqueue.c diff -u src/sys/external/bsd/dwc2/dist/dwc2_hcdqueue.c:1.4 src/sys/external/bsd/dwc2/dist/dwc2_hcdqueue.c:1.5 --- src/sys/external/bsd/dwc2/dist/dwc2_hcdqueue.c:1.4 Sat Oct 5 06:51:43 2013 +++ src/sys/external/bsd/dwc2/dist/dwc2_hcdqueue.c Thu Nov 14 12:40:51 2013 @@ -1,4 +1,4 @@ -/* $NetBSD: dwc2_hcdqueue.c,v 1.4 2013/10/05 06:51:43 skrll Exp $ */ +/* $NetBSD: dwc2_hcdqueue.c,v 1.5 2013/11/14 12:40:51 skrll Exp $ */ /* * hcd_queue.c - DesignWare HS OTG Controller host queuing routines @@ -42,7 +42,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: dwc2_hcdqueue.c,v 1.4 2013/10/05 06:51:43 skrll Exp $"); +__KERNEL_RCSID(0, "$NetBSD: dwc2_hcdqueue.c,v 1.5 2013/11/14 12:40:51 skrll Exp $"); #include <sys/types.h> #include <sys/kmem.h> @@ -244,15 +244,10 @@ static struct dwc2_qh *dwc2_hcd_qh_creat void dwc2_hcd_qh_free(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh) { struct dwc2_softc *sc = hsotg->hsotg_sc; - u32 buf_size; if (hsotg->core_params->dma_desc_enable > 0) { dwc2_hcd_qh_free_ddma(hsotg, qh); } else if (qh->dw_align_buf) { - if (qh->ep_type == USB_ENDPOINT_XFER_ISOC) - buf_size = 4096; - else - buf_size = hsotg->core_params->max_transfer_size; /* XXXNH */ usb_freemem(&hsotg->hsotg_sc->sc_bus, &qh->dw_align_buf_usbdma); }