summaryrefslogtreecommitdiffstats
path: root/sys/dev/trm/trm.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/trm/trm.c')
-rw-r--r--sys/dev/trm/trm.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/trm/trm.c b/sys/dev/trm/trm.c
index 42aa101..00a507f 100644
--- a/sys/dev/trm/trm.c
+++ b/sys/dev/trm/trm.c
@@ -1334,11 +1334,10 @@ void *vpACB;
if (scsi_intstatus & (INT_BUSSERVICE | INT_CMDDONE)) {
pDCB = pACB->pActiveDCB;
+ KASSERT(pDCB != NULL, ("no active DCB"));
pSRB = pDCB->pActiveSRB;
- if (pDCB) {
- if (pDCB->DCBFlag & ABORT_DEV_)
+ if (pDCB->DCBFlag & ABORT_DEV_)
trm_EnableMsgOutAbort1(pACB, pSRB);
- }
phase = (u_int16_t) pSRB->ScsiPhase; /* phase: */
stateV = (void *) trm_SCSI_phase0[phase];
stateV(pACB, pSRB, &scsi_status);
OpenPOWER on IntegriCloud