Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb Sprinkle some const
details: https://anonhg.NetBSD.org/src/rev/2374d552eafb
branches: trunk
changeset: 351019:2374d552eafb
user: skrll <skrll%NetBSD.org@localhost>
date: Mon Jan 30 21:39:08 2017 +0000
description:
Sprinkle some const
diffstat:
sys/dev/usb/ohci.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (31 lines):
diff -r 9707c836d03b -r 2374d552eafb sys/dev/usb/ohci.c
--- a/sys/dev/usb/ohci.c Mon Jan 30 21:35:59 2017 +0000
+++ b/sys/dev/usb/ohci.c Mon Jan 30 21:39:08 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ohci.c,v 1.269 2017/01/30 21:35:59 skrll Exp $ */
+/* $NetBSD: ohci.c,v 1.270 2017/01/30 21:39:08 skrll Exp $ */
/*
* Copyright (c) 1998, 2004, 2005, 2012 The NetBSD Foundation, Inc.
@@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ohci.c,v 1.269 2017/01/30 21:35:59 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ohci.c,v 1.270 2017/01/30 21:39:08 skrll Exp $");
#ifdef _KERNEL_OPT
#include "opt_usb.h"
@@ -622,10 +622,10 @@
KASSERT(next != cur);
curlen = 0;
- ohci_physaddr_t sdataphys = DMAADDR(dma, curoffs);
+ const ohci_physaddr_t sdataphys = DMAADDR(dma, curoffs);
ohci_physaddr_t edataphys = DMAADDR(dma, curoffs + len - 1);
- ohci_physaddr_t sphyspg = OHCI_PAGE(sdataphys);
+ const ohci_physaddr_t sphyspg = OHCI_PAGE(sdataphys);
ohci_physaddr_t ephyspg = OHCI_PAGE(edataphys);
/*
* The OHCI hardware can handle at most one page
Home |
Main Index |
Thread Index |
Old Index