summaryrefslogtreecommitdiff
path: root/sys/arch/amiga
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/amiga')
-rw-r--r--sys/arch/amiga/amiga/machdep.c14
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