mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-17 10:41:26 +00:00
qla2xxx: Use make_handle() instead of open-coding it
[ commit 2a4b684ab0aa2a8f8efede77ca1525042c2c0e01 upstream ] git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8972 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -831,7 +831,7 @@ qla2x00_async_event(scsi_qla_host_t *vha, struct rsp_que *rsp, uint16_t *mb)
|
||||
goto skip_rio;
|
||||
switch (mb[0]) {
|
||||
case MBA_SCSI_COMPLETION:
|
||||
handles[0] = le32_to_cpu((uint32_t)((mb[2] << 16) | mb[1]));
|
||||
handles[0] = le32_to_cpu(make_handle(mb[2], mb[1]));
|
||||
handle_cnt = 1;
|
||||
break;
|
||||
case MBA_CMPLT_1_16BIT:
|
||||
@@ -870,10 +870,10 @@ qla2x00_async_event(scsi_qla_host_t *vha, struct rsp_que *rsp, uint16_t *mb)
|
||||
mb[0] = MBA_SCSI_COMPLETION;
|
||||
break;
|
||||
case MBA_CMPLT_2_32BIT:
|
||||
handles[0] = le32_to_cpu((uint32_t)((mb[2] << 16) | mb[1]));
|
||||
handles[1] = le32_to_cpu(
|
||||
((uint32_t)(RD_MAILBOX_REG(ha, reg, 7) << 16)) |
|
||||
RD_MAILBOX_REG(ha, reg, 6));
|
||||
handles[0] = le32_to_cpu(make_handle(mb[2], mb[1]));
|
||||
handles[1] =
|
||||
le32_to_cpu(make_handle(RD_MAILBOX_REG(ha, reg, 7),
|
||||
RD_MAILBOX_REG(ha, reg, 6)));
|
||||
handle_cnt = 2;
|
||||
mb[0] = MBA_SCSI_COMPLETION;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user