Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/dwc2 Remove unused variable.
details: https://anonhg.NetBSD.org/src/rev/f35c6dffa263
branches: trunk
changeset: 791368:f35c6dffa263
user: skrll <skrll%NetBSD.org@localhost>
date: Thu Nov 14 12:40:51 2013 +0000
description:
Remove unused variable.
diffstat:
sys/external/bsd/dwc2/dist/dwc2_hcdqueue.c | 9 ++-------
sys/external/bsd/dwc2/dwc2.c | 7 ++-----
2 files changed, 4 insertions(+), 12 deletions(-)
diffs (69 lines):
diff -r b5a99bbbba62 -r f35c6dffa263 sys/external/bsd/dwc2/dist/dwc2_hcdqueue.c
--- a/sys/external/bsd/dwc2/dist/dwc2_hcdqueue.c Thu Nov 14 12:21:05 2013 +0000
+++ b/sys/external/bsd/dwc2/dist/dwc2_hcdqueue.c Thu Nov 14 12:40:51 2013 +0000
@@ -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 @@
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);
}
diff -r b5a99bbbba62 -r f35c6dffa263 sys/external/bsd/dwc2/dwc2.c
--- a/sys/external/bsd/dwc2/dwc2.c Thu Nov 14 12:21:05 2013 +0000
+++ b/sys/external/bsd/dwc2/dwc2.c Thu Nov 14 12:40:51 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dwc2.c,v 1.16 2013/11/01 15:03:39 skrll Exp $ */
+/* $NetBSD: dwc2.c,v 1.17 2013/11/14 12:41:14 skrll Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dwc2.c,v 1.16 2013/11/01 15:03:39 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dwc2.c,v 1.17 2013/11/14 12:41:14 skrll Exp $");
#include "opt_usb.h"
@@ -306,7 +306,6 @@
{
struct dwc2_softc *sc = addr;
usbd_xfer_handle xfer;
- usbd_pipe_handle pipe;
u_char *p;
DPRINTF("\n");
@@ -320,8 +319,6 @@
}
/* set port bit */
- pipe = xfer->pipe;
-
p = KERNADDR(&xfer->dmabuf, 0);
p[0] = 0x02; /* we only have one port (1 << 1) */
Home |
Main Index |
Thread Index |
Old Index