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/caa56bb0eff6
branches: trunk
changeset: 347560:caa56bb0eff6
user: skrll <skrll%NetBSD.org@localhost>
date: Sat Sep 03 07:23:27 2016 +0000
description:
Reduce scope of a variable. No functional change.
diffstat:
sys/dev/usb/usb_subr.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (54 lines):
diff -r de5a38dc0335 -r caa56bb0eff6 sys/dev/usb/usb_subr.c
--- a/sys/dev/usb/usb_subr.c Sat Sep 03 07:20:12 2016 +0000
+++ b/sys/dev/usb/usb_subr.c Sat Sep 03 07:23:27 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: usb_subr.c,v 1.213 2016/09/03 07:20:12 skrll Exp $ */
+/* $NetBSD: usb_subr.c,v 1.214 2016/09/03 07:23:27 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.213 2016/09/03 07:20:12 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: usb_subr.c,v 1.214 2016/09/03 07:23:27 skrll Exp $");
#ifdef _KERNEL_OPT
#include "opt_compat_netbsd.h"
@@ -1489,7 +1489,7 @@
int usedev)
{
struct usbd_port *p;
- int i, j, err, s;
+ int i, j, err;
di->udi_bus = device_unit(dev->ud_bus->ub_usbctl);
di->udi_addr = dev->ud_addr;
@@ -1553,7 +1553,7 @@
if (p->up_dev)
err = p->up_dev->ud_addr;
else {
- s = UGETW(p->up_status.wPortStatus);
+ int s = UGETW(p->up_status.wPortStatus);
if (s & UPS_PORT_ENABLED)
err = USB_PORT_ENABLED;
else if (s & UPS_SUSPEND)
@@ -1582,7 +1582,7 @@
int usedev)
{
struct usbd_port *p;
- int i, j, err, s;
+ int i, j, err;
di->udi_bus = device_unit(dev->ud_bus->ub_usbctl);
di->udi_addr = dev->ud_addr;
@@ -1629,7 +1629,7 @@
if (p->up_dev)
err = p->up_dev->ud_addr;
else {
- s = UGETW(p->up_status.wPortStatus);
+ int s = UGETW(p->up_status.wPortStatus);
if (s & UPS_PORT_ENABLED)
err = USB_PORT_ENABLED;
else if (s & UPS_SUSPEND)
Home |
Main Index |
Thread Index |
Old Index