mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-17 10:41:26 +00:00
qla2x00t-32gbit: Change two fxdisc_entry_fx00 members from a scalar into an array
This patch does not change any functionality but suppresses a Coverity warning. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9092 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -3286,8 +3286,8 @@ qlafx00_fxdisc_iocb(srb_t *sp, struct fxdisc_entry_fx00 *pfxiocb)
|
||||
fx_iocb.req_xfrcnt =
|
||||
cpu_to_le16(fxio->u.fxiocb.req_len);
|
||||
put_unaligned_le64(fxio->u.fxiocb.req_dma_handle,
|
||||
&fx_iocb.dseg_rq.address);
|
||||
fx_iocb.dseg_rq.length =
|
||||
&fx_iocb.dseg_rq[0].address);
|
||||
fx_iocb.dseg_rq[0].length =
|
||||
cpu_to_le32(fxio->u.fxiocb.req_len);
|
||||
}
|
||||
|
||||
@@ -3296,8 +3296,8 @@ qlafx00_fxdisc_iocb(srb_t *sp, struct fxdisc_entry_fx00 *pfxiocb)
|
||||
fx_iocb.rsp_xfrcnt =
|
||||
cpu_to_le16(fxio->u.fxiocb.rsp_len);
|
||||
put_unaligned_le64(fxio->u.fxiocb.rsp_dma_handle,
|
||||
&fx_iocb.dseg_rsp.address);
|
||||
fx_iocb.dseg_rsp.length =
|
||||
&fx_iocb.dseg_rsp[0].address);
|
||||
fx_iocb.dseg_rsp[0].length =
|
||||
cpu_to_le32(fxio->u.fxiocb.rsp_len);
|
||||
}
|
||||
|
||||
@@ -3334,7 +3334,7 @@ qlafx00_fxdisc_iocb(srb_t *sp, struct fxdisc_entry_fx00 *pfxiocb)
|
||||
cpu_to_le16(bsg_job->request_payload.sg_cnt);
|
||||
tot_dsds =
|
||||
bsg_job->request_payload.sg_cnt;
|
||||
cur_dsd = &fx_iocb.dseg_rq;
|
||||
cur_dsd = &fx_iocb.dseg_rq[0];
|
||||
avail_dsds = 1;
|
||||
for_each_sg(bsg_job->request_payload.sg_list, sg,
|
||||
tot_dsds, index) {
|
||||
@@ -3389,7 +3389,7 @@ qlafx00_fxdisc_iocb(srb_t *sp, struct fxdisc_entry_fx00 *pfxiocb)
|
||||
fx_iocb.rsp_dsdcnt =
|
||||
cpu_to_le16(bsg_job->reply_payload.sg_cnt);
|
||||
tot_dsds = bsg_job->reply_payload.sg_cnt;
|
||||
cur_dsd = &fx_iocb.dseg_rsp;
|
||||
cur_dsd = &fx_iocb.dseg_rsp[0];
|
||||
avail_dsds = 1;
|
||||
|
||||
for_each_sg(bsg_job->reply_payload.sg_list, sg,
|
||||
|
||||
@@ -177,8 +177,8 @@ struct fxdisc_entry_fx00 {
|
||||
uint8_t flags;
|
||||
uint8_t reserved_1;
|
||||
|
||||
struct dsd64 dseg_rq;
|
||||
struct dsd64 dseg_rsp;
|
||||
struct dsd64 dseg_rq[1];
|
||||
struct dsd64 dseg_rsp[1];
|
||||
|
||||
__le32 dataword;
|
||||
__le32 adapid;
|
||||
|
||||
Reference in New Issue
Block a user