Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd Remove unused variables.
details: https://anonhg.NetBSD.org/src/rev/8e98635f4877
branches: trunk
changeset: 325228:8e98635f4877
user: skrll <skrll%NetBSD.org@localhost>
date: Sat Dec 14 09:58:03 2013 +0000
description:
Remove unused variables.
diffstat:
sys/external/bsd/dwc2/dist/dwc2_hcdddma.c | 12 +++++-------
sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_arm.c | 5 ++---
2 files changed, 7 insertions(+), 10 deletions(-)
diffs (66 lines):
diff -r aa4468d44c16 -r 8e98635f4877 sys/external/bsd/dwc2/dist/dwc2_hcdddma.c
--- a/sys/external/bsd/dwc2/dist/dwc2_hcdddma.c Sat Dec 14 09:52:33 2013 +0000
+++ b/sys/external/bsd/dwc2/dist/dwc2_hcdddma.c Sat Dec 14 09:58:03 2013 +0000
@@ -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 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 @@
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)
diff -r aa4468d44c16 -r 8e98635f4877 sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_arm.c
--- a/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_arm.c Sat Dec 14 09:52:33 2013 +0000
+++ b/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_arm.c Sat Dec 14 09:58:03 2013 +0000
@@ -2358,7 +2358,6 @@
VCHIQ_STATUS_T ret = VCHIQ_SUCCESS;
char entity[16];
int *entity_uc;
- int local_uc, local_entity_uc;
if (!arm_state)
goto out;
@@ -2383,8 +2382,8 @@
ret = VCHIQ_ERROR;
goto unlock;
}
- local_uc = --arm_state->videocore_use_count;
- local_entity_uc = --(*entity_uc);
+ --arm_state->videocore_use_count;
+ --(*entity_uc);
if (!vchiq_videocore_wanted(state)) {
if (vchiq_platform_use_suspend_timer() &&
Home |
Main Index |
Thread Index |
Old Index