Date: Sun, 6 Aug 2006 09:27:26 GMT From: Paolo Pisati <piso@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 103316 for review Message-ID: <200608060927.k769RQmX032913@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=103316 Change 103316 by piso@piso_newluxor on 2006/08/06 09:27:11 And if i updated correctly the loop variable, the stray logic will work even better: this makes my re happy again. Affected files ... .. //depot/projects/soc2006/intr_filter/i386/i386/intr_machdep.c#10 edit Differences ... ==== //depot/projects/soc2006/intr_filter/i386/i386/intr_machdep.c#10 (text+ko) ==== @@ -173,9 +173,10 @@ walk_intr_src(void) { static int i = 0; - for (; i<NUM_IO_INTS; i++) { - if (interrupt_sources[i] != NULL) - return (interrupt_sources[i]); + for (; i<NUM_IO_INTS; ) { + int j = i++; + if (interrupt_sources[j] != NULL) + return (interrupt_sources[j]); } i = 0; return (NULL);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200608060927.k769RQmX032913>