Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb Reduce scope of a variable. No functional change.
details: https://anonhg.NetBSD.org/src/rev/6e9364b453ec
branches: trunk
changeset: 347619:6e9364b453ec
user: skrll <skrll%NetBSD.org@localhost>
date: Tue Sep 06 06:46:15 2016 +0000
description:
Reduce scope of a variable. No functional change.
diffstat:
sys/dev/usb/usb_subr.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (36 lines):
diff -r b0b810ddcb71 -r 6e9364b453ec sys/dev/usb/usb_subr.c
--- a/sys/dev/usb/usb_subr.c Tue Sep 06 06:27:17 2016 +0000
+++ b/sys/dev/usb/usb_subr.c Tue Sep 06 06:46:15 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: usb_subr.c,v 1.215 2016/09/03 07:29:16 skrll Exp $ */
+/* $NetBSD: usb_subr.c,v 1.216 2016/09/06 06:46:15 skrll Exp $ */
/* $FreeBSD: src/sys/dev/usb/usb_subr.c,v 1.18 1999/11/17 22:33:47 n_hibma Exp $ */
/*
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: usb_subr.c,v 1.215 2016/09/03 07:29:16 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: usb_subr.c,v 1.216 2016/09/06 06:46:15 skrll Exp $");
#ifdef _KERNEL_OPT
#include "opt_compat_netbsd.h"
@@ -562,7 +562,7 @@
{
USBHIST_FUNC(); USBHIST_CALLED(usbdebug);
usb_config_descriptor_t cd, *cdp;
- usb_bos_descriptor_t bd, *bdp = NULL;
+ usb_bos_descriptor_t *bdp = NULL;
usbd_status err;
int i, ifcidx, nifc, len, selfpowered, power;
@@ -633,6 +633,8 @@
}
if (USB_IS_SS(dev->ud_speed)) {
+ usb_bos_descriptor_t bd;
+
/* get short bos desc */
err = usbd_get_bos_desc(dev, index, &bd);
if (!err) {
Home |
Main Index |
Thread Index |
Old Index