Remove unnecessary check for OCB_ACT_CMD.

This commit is contained in:
simokawa 2003-02-09 07:40:27 +00:00
parent 4cf30c0db1
commit 36ad849baa

View File

@ -2272,9 +2272,7 @@ END_DEBUG
ocb->ccb->ccb_h.timeout_ch = timeout(sbp_timeout, (caddr_t)ocb,
(ocb->ccb->ccb_h.timeout * hz) / 1000);
if (prev != NULL
&& ((prev->flags & OCB_ACT_MASK) == OCB_ACT_CMD)
&& ((ocb->flags & OCB_ACT_MASK) == OCB_ACT_CMD)) {
if (prev != NULL ) {
SBP_DEBUG(1)
#if __FreeBSD_version >= 500000
printf("linking chain 0x%tx -> 0x%tx\n", vtophys(&prev->orb[0]),
@ -2286,8 +2284,6 @@ END_DEBUG
prev->flags |= OCB_RESERVED;
prev->orb[1] = htonl(vtophys(&ocb->orb[0]));
prev->orb[0] = 0;
} else {
prev = NULL;
}
splx(s);