Module Name:    src
Committed By:   skrll
Date:           Tue Sep  6 06:46:15 UTC 2016

Modified Files:
        src/sys/dev/usb: usb_subr.c

Log Message:
Reduce scope of a variable.  No functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.215 -r1.216 src/sys/dev/usb/usb_subr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/usb/usb_subr.c
diff -u src/sys/dev/usb/usb_subr.c:1.215 src/sys/dev/usb/usb_subr.c:1.216
--- src/sys/dev/usb/usb_subr.c:1.215	Sat Sep  3 07:29:16 2016
+++ src/sys/dev/usb/usb_subr.c	Tue Sep  6 06:46:15 2016
@@ -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 @@ usbd_set_config_index(struct usbd_device
 {
 	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 @@ usbd_set_config_index(struct usbd_device
 	}
 
 	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) {

Reply via email to