Module Name: src Committed By: matt Date: Sat Dec 11 22:32:13 UTC 2010
Modified Files: src/sys/kern: kern_softint.c Log Message: Make sure all for loops use { } To generate a diff of this commit: cvs rdiff -u -r1.31 -r1.32 src/sys/kern/kern_softint.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/kern/kern_softint.c diff -u src/sys/kern/kern_softint.c:1.31 src/sys/kern/kern_softint.c:1.32 --- src/sys/kern/kern_softint.c:1.31 Sat Jan 9 19:02:17 2010 +++ src/sys/kern/kern_softint.c Sat Dec 11 22:32:13 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: kern_softint.c,v 1.31 2010/01/09 19:02:17 rmind Exp $ */ +/* $NetBSD: kern_softint.c,v 1.32 2010/12/11 22:32:13 matt Exp $ */ /*- * Copyright (c) 2007, 2008 The NetBSD Foundation, Inc. @@ -176,7 +176,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: kern_softint.c,v 1.31 2010/01/09 19:02:17 rmind Exp $"); +__KERNEL_RCSID(0, "$NetBSD: kern_softint.c,v 1.32 2010/12/11 22:32:13 matt Exp $"); #include <sys/param.h> #include <sys/malloc.h> @@ -345,9 +345,10 @@ /* Find a free slot. */ sc = curcpu()->ci_data.cpu_softcpu; - for (index = 1; index < softint_max; index++) + for (index = 1; index < softint_max; index++) { if (sc->sc_hand[index].sh_func == NULL) break; + } if (index == softint_max) { mutex_exit(&softint_lock); printf("WARNING: softint_establish: table full, " @@ -463,8 +464,9 @@ sh = (softhand_t *)((uint8_t *)curcpu()->ci_data.cpu_softcpu + offset); /* If it's already pending there's nothing to do. */ - if ((sh->sh_flags & SOFTINT_PENDING) != 0) + if ((sh->sh_flags & SOFTINT_PENDING) != 0) { return; + } /* * Enqueue the handler into the LWP's pending list.