Corrected typo when removing CCB's from the hash list.
authorhannken <hannken@openbsd.org>
Sun, 21 Jan 1996 09:25:34 +0000 (09:25 +0000)
committerhannken <hannken@openbsd.org>
Sun, 21 Jan 1996 09:25:34 +0000 (09:25 +0000)
sys/dev/isa/aha.c
sys/dev/isa/aha1542.c

index e454c58..504ae2b 100644 (file)
@@ -758,7 +758,9 @@ aha_free_ccb(aha, ccb, flags)
                        *hashccb = (*hashccb)->nexthash;
                        break;
                }
-               (*hashccb) = (*hashccb)->nexthash;
+               hashccb = &(*hashccb)->nexthash;
+       }
        }
 
        ccb->flags = CCB_FREE;
index e454c58..504ae2b 100644 (file)
@@ -758,7 +758,9 @@ aha_free_ccb(aha, ccb, flags)
                        *hashccb = (*hashccb)->nexthash;
                        break;
                }
-               (*hashccb) = (*hashccb)->nexthash;
+               hashccb = &(*hashccb)->nexthash;
+       }
        }
 
        ccb->flags = CCB_FREE;