summaryrefslogtreecommitdiffstats
path: root/sys/dev/isp/isp_target.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/isp/isp_target.c')
-rw-r--r--sys/dev/isp/isp_target.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/isp/isp_target.c b/sys/dev/isp/isp_target.c
index dced16c..b7c4632 100644
--- a/sys/dev/isp/isp_target.c
+++ b/sys/dev/isp/isp_target.c
@@ -525,11 +525,9 @@ isp_target_async(isp, bus, event)
*/
MEMZERO(&msg, sizeof msg);
if (IS_FC(isp)) {
- msg.nt_iid =
- ((fcparam *)isp->isp_param)->isp_loopid;
+ msg.nt_iid = FCPARAM(isp)->isp_loopid;
} else {
- msg.nt_iid =
- ((sdparam *)isp->isp_param)->isp_initiator_id;
+ msg.nt_iid = SDPARAM(isp)->isp_initiator_id;
}
msg.nt_bus = bus;
msg.nt_msg[0] = MSG_BUS_DEV_RESET;
OpenPOWER on IntegriCloud