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 */
if (si->function != function)
psi = si;
else {
-/* free(si, M_TEMP); */
si->next = si_free;
si_free = si;
if (psi)
do {
s = splhigh ();
- /* Yes, that's an *assignment* below! */
- if (si = si_callbacks)
+ si = si_callbacks;
+ if (si)
si_callbacks = si->next;
splx(s);
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;
#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