Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/nick-nhusb]: src/sys/dev/usb Sprinkle const
details: https://anonhg.NetBSD.org/src/rev/c7e52e5bf469
branches: nick-nhusb
changeset: 334539:c7e52e5bf469
user: skrll <skrll%NetBSD.org@localhost>
date: Fri Oct 07 10:37:42 2016 +0000
description:
Sprinkle const
diffstat:
sys/dev/usb/usb_subr.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 37367bc9dece -r c7e52e5bf469 sys/dev/usb/usb_subr.c
--- a/sys/dev/usb/usb_subr.c Fri Oct 07 10:35:25 2016 +0000
+++ b/sys/dev/usb/usb_subr.c Fri Oct 07 10:37:42 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: usb_subr.c,v 1.198.2.33 2016/10/07 10:35:25 skrll Exp $ */
+/* $NetBSD: usb_subr.c,v 1.198.2.34 2016/10/07 10:37:42 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.198.2.33 2016/10/07 10:35:25 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: usb_subr.c,v 1.198.2.34 2016/10/07 10:37:42 skrll Exp $");
#ifdef _KERNEL_OPT
#include "opt_compat_netbsd.h"
@@ -1553,7 +1553,7 @@
if (p->up_dev)
err = p->up_dev->ud_addr;
else {
- int s = UGETW(p->up_status.wPortStatus);
+ const int s = UGETW(p->up_status.wPortStatus);
const bool sshub_p = USB_IS_SS(dev->ud_speed);
if (s & UPS_PORT_ENABLED)
err = USB_PORT_ENABLED;
@@ -1629,7 +1629,7 @@
if (p->up_dev)
err = p->up_dev->ud_addr;
else {
- int s = UGETW(p->up_status.wPortStatus);
+ const 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