Module Name: src
Committed By: skrll
Date: Sat Dec 14 09:58:03 UTC 2013
Modified Files:
src/sys/external/bsd/dwc2/dist: dwc2_hcdddma.c
Log Message:
Remove unused variables.
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/external/bsd/dwc2/dist/dwc2_hcdddma.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_hcdddma.c
diff -u src/sys/external/bsd/dwc2/dist/dwc2_hcdddma.c:1.4 src/sys/external/bsd/dwc2/dist/dwc2_hcdddma.c:1.5
--- src/sys/external/bsd/dwc2/dist/dwc2_hcdddma.c:1.4 Sat Oct 5 06:51:43 2013
+++ src/sys/external/bsd/dwc2/dist/dwc2_hcdddma.c Sat Dec 14 09:58:03 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: dwc2_hcdddma.c,v 1.4 2013/10/05 06:51:43 skrll Exp $ */
+/* $NetBSD: dwc2_hcdddma.c,v 1.5 2013/12/14 09:58:03 skrll Exp $ */
/*
* hcd_ddma.c - DesignWare HS OTG Controller descriptor DMA routines
@@ -40,7 +40,7 @@
* This file contains the Descriptor DMA implementation for Host mode
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dwc2_hcdddma.c,v 1.4 2013/10/05 06:51:43 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dwc2_hcdddma.c,v 1.5 2013/12/14 09:58:03 skrll Exp $");
#include <sys/param.h>
#include <sys/types.h>
@@ -164,8 +164,7 @@ static int dwc2_frame_list_alloc(struct
static void dwc2_frame_list_free(struct dwc2_hsotg *hsotg)
{
- u32 *frame_list;
- dma_addr_t frame_list_dma;
+ usb_dma_t frame_list_usbdma;
unsigned long flags;
spin_lock_irqsave(&hsotg->lock, flags);
@@ -175,13 +174,12 @@ static void dwc2_frame_list_free(struct
return;
}
- frame_list = hsotg->frame_list;
- frame_list_dma = hsotg->frame_list_dma;
+ frame_list_usbdma = hsotg->frame_list_usbdma;
hsotg->frame_list = NULL;
spin_unlock_irqrestore(&hsotg->lock, flags);
- usb_freemem(&hsotg->hsotg_sc->sc_bus, &hsotg->frame_list_usbdma);
+ usb_freemem(&hsotg->hsotg_sc->sc_bus, &frame_list_usbdma);
}
static void dwc2_per_sched_enable(struct dwc2_hsotg *hsotg, u32 fr_list_en)