From: hannken Date: Sun, 21 Jan 1996 09:25:34 +0000 (+0000) Subject: Corrected typo when removing CCB's from the hash list. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=430dee108ae924242d0a29da94626ae1519cb8ef;p=openbsd Corrected typo when removing CCB's from the hash list. --- diff --git a/sys/dev/isa/aha.c b/sys/dev/isa/aha.c index e454c5879b2..504ae2b5c69 100644 --- a/sys/dev/isa/aha.c +++ b/sys/dev/isa/aha.c @@ -758,7 +758,9 @@ aha_free_ccb(aha, ccb, flags) *hashccb = (*hashccb)->nexthash; break; } - (*hashccb) = (*hashccb)->nexthash; + hashccb = &(*hashccb)->nexthash; + } + } ccb->flags = CCB_FREE; diff --git a/sys/dev/isa/aha1542.c b/sys/dev/isa/aha1542.c index e454c5879b2..504ae2b5c69 100644 --- a/sys/dev/isa/aha1542.c +++ b/sys/dev/isa/aha1542.c @@ -758,7 +758,9 @@ aha_free_ccb(aha, ccb, flags) *hashccb = (*hashccb)->nexthash; break; } - (*hashccb) = (*hashccb)->nexthash; + hashccb = &(*hashccb)->nexthash; + } + } ccb->flags = CCB_FREE;