From 5a8d8970beb717d061a4d3767a93b6748e882e43 Mon Sep 17 00:00:00 2001 From: Hidetoshi Shimokawa Date: Sun, 9 Feb 2003 07:40:27 +0000 Subject: [PATCH] Remove unnecessary check for OCB_ACT_CMD. --- sys/dev/firewire/sbp.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/sys/dev/firewire/sbp.c b/sys/dev/firewire/sbp.c index 4ac50c7327f7..e182477d4fe2 100644 --- a/sys/dev/firewire/sbp.c +++ b/sys/dev/firewire/sbp.c @@ -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);