diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1996-03-24 16:13:35 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1996-03-24 16:13:35 +0000 |
commit | 8431f514cbb205b2c1bd2eaa21e92f644ec2b1d8 (patch) | |
tree | bbae2e0b282a76eb5846e5f14f784fea10ea27eb /sys/arch/amiga | |
parent | 717f315cc1987a25bd77da42a8403ccf9647b642 (diff) |
Style police
Diffstat (limited to 'sys/arch/amiga')
-rw-r--r-- | sys/arch/amiga/amiga/machdep.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/sys/arch/amiga/amiga/machdep.c b/sys/arch/amiga/amiga/machdep.c index 9f539bd2c18..d6b17a926a9 100644 --- a/sys/arch/amiga/amiga/machdep.c +++ b/sys/arch/amiga/amiga/machdep.c @@ -1278,7 +1278,8 @@ add_sicallback (function, rock1, rock2) splx(s); if (si == NULL) { - si = (struct si_callback *)malloc(sizeof(*si), M_TEMP, M_NOWAIT); + si = (struct si_callback *)malloc(sizeof(*si), M_TEMP, + M_NOWAIT); #ifdef DIAGNOSTIC if (si) ++ncbd; /* count # dynamically allocated */ @@ -1323,7 +1324,6 @@ rem_sicallback(function) if (si->function != function) psi = si; else { -/* free(si, M_TEMP); */ si->next = si_free; si_free = si; if (psi) @@ -1349,8 +1349,8 @@ call_sicallbacks() do { s = splhigh (); - /* Yes, that's an *assignment* below! */ - if (si = si_callbacks) + si = si_callbacks; + if (si) si_callbacks = si->next; splx(s); @@ -1358,8 +1358,6 @@ call_sicallbacks() function = si->function; rock1 = si->rock1; rock2 = si->rock2; -/* si->function(si->rock1, si->rock2); */ -/* free(si, M_TEMP); */ s = splhigh (); si->next = si_free; si_free = si; @@ -1370,8 +1368,8 @@ call_sicallbacks() #ifdef DIAGNOSTIC if (ncbd) { ncb += ncbd; - printf ("call_sicallback: %d more dynamic structures %d total\n", - ncbd, ncb); + printf ("call_sicallback: " + "%d more dynamic structures %d total\n", ncbd, ncb); ncbd = 0; } #endif |