Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/usb Fix use of & when % was appropriate.



details:   https://anonhg.NetBSD.org/src/rev/15607be1d5ad
branches:  trunk
changeset: 473618:15607be1d5ad
user:      wrstuden <wrstuden%NetBSD.org@localhost>
date:      Wed Jun 09 19:40:54 1999 +0000

description:
Fix use of & when % was appropriate.

diffstat:

 sys/dev/usb/ohci.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 111fddb1d090 -r 15607be1d5ad sys/dev/usb/ohci.c
--- a/sys/dev/usb/ohci.c        Wed Jun 09 17:04:45 1999 +0000
+++ b/sys/dev/usb/ohci.c        Wed Jun 09 19:40:54 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ohci.c,v 1.30 1999/05/21 10:15:23 augustss Exp $       */
+/*     $NetBSD: ohci.c,v 1.31 1999/06/09 19:40:54 wrstuden Exp $       */
 
 /*
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -2154,7 +2154,7 @@
        splx(s);
 
        for (j = 0; j < nslots; j++)
-               --sc->sc_bws[(pos * nslots + j) & OHCI_NO_INTRS];
+               --sc->sc_bws[(pos * nslots + j) % OHCI_NO_INTRS];
 
        ohci_free_std(sc, opipe->tail);
        ohci_free_sed(sc, opipe->sed);



Home | Main Index | Thread Index | Old Index