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/f2d7f873cbca
branches: trunk
changeset: 790054:f2d7f873cbca
user: martin <martin%NetBSD.org@localhost>
date: Sun Sep 15 15:04:47 2013 +0000
description:
Avoid unused variable warnings
diffstat:
sys/dev/usb/uaudio.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (40 lines):
diff -r 9f5f86a52fe5 -r f2d7f873cbca sys/dev/usb/uaudio.c
--- a/sys/dev/usb/uaudio.c Sun Sep 15 15:00:57 2013 +0000
+++ b/sys/dev/usb/uaudio.c Sun Sep 15 15:04:47 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uaudio.c,v 1.137 2013/08/15 15:26:50 aymeric Exp $ */
+/* $NetBSD: uaudio.c,v 1.138 2013/09/15 15:04:47 martin Exp $ */
/*
* Copyright (c) 1999, 2012 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uaudio.c,v 1.137 2013/08/15 15:26:50 aymeric Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uaudio.c,v 1.138 2013/09/15 15:04:47 martin Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -1557,10 +1557,10 @@
const usb_endpoint_descriptor_audio_t *ed;
const usb_endpoint_descriptor_audio_t *epdesc1;
const struct usb_audio_streaming_endpoint_descriptor *sed;
- int format, chan, prec, enc;
+ int format, chan __unused, prec, enc;
int dir, type, sync;
struct as_info ai;
- const char *format_str;
+ const char *format_str __unused;
asid = (const void *)(tbuf + offs);
if (asid->bDescriptorType != UDESC_CS_INTERFACE ||
@@ -2374,7 +2374,7 @@
{
usb_device_request_t req;
u_int8_t data[4];
- usbd_status err;
+ int err __unused;
if (wValue == -1)
return;
Home |
Main Index |
Thread Index |
Old Index