Module Name: src
Committed By: uebayasi
Date: Sun Nov 1 13:26:50 UTC 2009
Modified Files:
src/sys/dev/usb: ehci.c
Log Message:
EHCI_NULL is already little-endian. No htole32() needed. Pointed out by
Tsubai Masanari.
To generate a diff of this commit:
cvs rdiff -u -r1.161 -r1.162 src/sys/dev/usb/ehci.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/ehci.c
diff -u src/sys/dev/usb/ehci.c:1.161 src/sys/dev/usb/ehci.c:1.162
--- src/sys/dev/usb/ehci.c:1.161 Sun Nov 1 07:23:13 2009
+++ src/sys/dev/usb/ehci.c Sun Nov 1 13:26:50 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: ehci.c,v 1.161 2009/11/01 07:23:13 uebayasi Exp $ */
+/* $NetBSD: ehci.c,v 1.162 2009/11/01 13:26:50 uebayasi Exp $ */
/*
* Copyright (c) 2004-2008 The NetBSD Foundation, Inc.
@@ -52,7 +52,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ehci.c,v 1.161 2009/11/01 07:23:13 uebayasi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ehci.c,v 1.162 2009/11/01 13:26:50 uebayasi Exp $");
#include "ohci.h"
#include "uhci.h"
@@ -4026,7 +4026,7 @@
if (itd->itd.itd_next == 0)
/* FIXME: frindex table gets initialized to NULL
* or EHCI_NULL? */
- itd->itd.itd_next = htole32(EHCI_NULL);
+ itd->itd.itd_next = EHCI_NULL;
usb_syncmem(&itd->dma,
itd->offs + offsetof(ehci_itd_t, itd_next),