Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb remove unused mutex and cv
details: https://anonhg.NetBSD.org/src/rev/5147a612098d
branches: trunk
changeset: 331363:5147a612098d
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Sat Aug 09 13:33:43 2014 +0000
description:
remove unused mutex and cv
diffstat:
sys/dev/usb/auvitek.c | 8 ++------
sys/dev/usb/auvitekvar.h | 4 +---
2 files changed, 3 insertions(+), 9 deletions(-)
diffs (54 lines):
diff -r aa74c94e1e58 -r 5147a612098d sys/dev/usb/auvitek.c
--- a/sys/dev/usb/auvitek.c Sat Aug 09 12:46:07 2014 +0000
+++ b/sys/dev/usb/auvitek.c Sat Aug 09 13:33:43 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: auvitek.c,v 1.8 2012/01/09 10:57:34 jmcneill Exp $ */
+/* $NetBSD: auvitek.c,v 1.9 2014/08/09 13:33:43 jmcneill Exp $ */
/*-
* Copyright (c) 2010 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: auvitek.c,v 1.8 2012/01/09 10:57:34 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: auvitek.c,v 1.9 2014/08/09 13:33:43 jmcneill Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -117,8 +117,6 @@
sc->sc_dying = sc->sc_running = 0;
mutex_init(&sc->sc_subdev_lock, MUTEX_DEFAULT, IPL_NONE);
- mutex_init(&sc->sc_ab.ab_lock, MUTEX_DEFAULT, IPL_USB);
- cv_init(&sc->sc_ab.ab_cv, "auvitekbulk");
err = usbd_set_config_index(dev, 0, 1);
if (err) {
@@ -303,8 +301,6 @@
if (sc->sc_ab.ab_bx[i].bx_xfer)
usbd_free_xfer(sc->sc_ab.ab_bx[i].bx_xfer);
}
- cv_destroy(&sc->sc_ab.ab_cv);
- mutex_destroy(&sc->sc_ab.ab_lock);
return 0;
}
diff -r aa74c94e1e58 -r 5147a612098d sys/dev/usb/auvitekvar.h
--- a/sys/dev/usb/auvitekvar.h Sat Aug 09 12:46:07 2014 +0000
+++ b/sys/dev/usb/auvitekvar.h Sat Aug 09 13:33:43 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: auvitekvar.h,v 1.7 2011/10/02 19:15:40 jmcneill Exp $ */
+/* $NetBSD: auvitekvar.h,v 1.8 2014/08/09 13:33:43 jmcneill Exp $ */
/*-
* Copyright (c) 2010 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -95,8 +95,6 @@
usbd_pipe_handle ab_pipe;
struct auvitek_bulk_xfer ab_bx[AUVITEK_NBULK_XFERS];
bool ab_running;
- kmutex_t ab_lock;
- kcondvar_t ab_cv;
};
struct auvitek_softc {
Home |
Main Index |
Thread Index |
Old Index