Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Make sure all for loops use { }
details: https://anonhg.NetBSD.org/src/rev/63d39ca730d9
branches: trunk
changeset: 759506:63d39ca730d9
user: matt <matt%NetBSD.org@localhost>
date: Sat Dec 11 22:32:13 2010 +0000
description:
Make sure all for loops use { }
diffstat:
sys/kern/kern_softint.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diffs (41 lines):
diff -r 281bc8e24e12 -r 63d39ca730d9 sys/kern/kern_softint.c
--- a/sys/kern/kern_softint.c Sat Dec 11 22:30:54 2010 +0000
+++ b/sys/kern/kern_softint.c Sat Dec 11 22:32:13 2010 +0000
@@ -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.
Home |
Main Index |
Thread Index |
Old Index