From f0985602f2d629ff2f3e17fd64a76c9d0ee0b1ae Mon Sep 17 00:00:00 2001 From: Andriy Gapon Date: Sat, 11 Mar 2017 18:40:39 +0000 Subject: [PATCH] aacraid: fix build with AACRAID_DEBUG=2 MFC after: 10 days --- sys/dev/aacraid/aacraid_cam.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sys/dev/aacraid/aacraid_cam.c b/sys/dev/aacraid/aacraid_cam.c index 675f4c1313d6..6bbd6b21a8fc 100644 --- a/sys/dev/aacraid/aacraid_cam.c +++ b/sys/dev/aacraid/aacraid_cam.c @@ -243,10 +243,12 @@ static int aac_cam_probe(device_t dev) { struct aac_cam *camsc; + struct aac_softc *sc; camsc = (struct aac_cam *)device_get_softc(dev); if (!camsc->inf) return (0); + sc = camsc->inf->aac_sc; fwprintf(sc, HBA_FLAGS_DBG_FUNCTION_ENTRY_B, ""); return (0); } @@ -1134,15 +1136,17 @@ static void aac_container_complete(struct aac_command *cm) { union ccb *ccb; + struct aac_softc *sc; u_int32_t status; + sc = cm->cm_sc; fwprintf(sc, HBA_FLAGS_DBG_FUNCTION_ENTRY_B, ""); ccb = cm->cm_ccb; status = ((u_int32_t *)cm->cm_fib->data)[0]; if (cm->cm_flags & AAC_CMD_RESET) { ccb->ccb_h.status = CAM_SCSI_BUS_RESET; - } else if (status == ST_OK) { + } else if (status == ST_OK) { ccb->ccb_h.status = CAM_REQ_CMP; } else if (status == ST_NOT_READY) { ccb->ccb_h.status = CAM_BUSY;