Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb Avoid unused variable warnings
details: https://anonhg.NetBSD.org/src/rev/878ef02cb86b
branches: trunk
changeset: 790063:878ef02cb86b
user: martin <martin%NetBSD.org@localhost>
date: Sun Sep 15 15:46:33 2013 +0000
description:
Avoid unused variable warnings
diffstat:
sys/dev/usb/ulpt.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (39 lines):
diff -r 7b3aab8e6ef0 -r 878ef02cb86b sys/dev/usb/ulpt.c
--- a/sys/dev/usb/ulpt.c Sun Sep 15 15:44:53 2013 +0000
+++ b/sys/dev/usb/ulpt.c Sun Sep 15 15:46:33 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ulpt.c,v 1.92 2012/08/24 13:14:19 martin Exp $ */
+/* $NetBSD: ulpt.c,v 1.93 2013/09/15 15:46:33 martin Exp $ */
/*
* Copyright (c) 1998, 2003 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ulpt.c,v 1.92 2012/08/24 13:14:19 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ulpt.c,v 1.93 2013/09/15 15:46:33 martin Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -869,7 +869,7 @@
ulpt_tick(void *xsc)
{
struct ulpt_softc *sc = xsc;
- usbd_status err;
+ usbd_status err __unused;
if (sc == NULL || sc->sc_dying)
return;
@@ -885,9 +885,11 @@
ulptioctl(dev_t dev, u_long cmd, void *data,
int flag, struct lwp *l)
{
+#if 0
struct ulpt_softc *sc;
sc = device_lookup_private(&ulpt_cd, ULPTUNIT(dev));
+#endif
switch (cmd) {
case FIONBIO:
Home |
Main Index |
Thread Index |
Old Index