diff options
author | Giridhar Malavali <giridhar.malavali@qlogic.com> | 2010-12-21 19:00:27 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-12-23 17:09:47 -0500 |
commit | aa5cbf8a70f57c5360ce1bfef692b357c866ae7f (patch) | |
tree | e9bc1f82c55464ff803e14438b2fbc9438ec3575 /drivers | |
parent | 900a36e3277ac9109fe364a6a1420c71265f9377 (diff) |
[SCSI] qla2xxx: Use sg_next to fetch next sg element while walking sg list.
Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com>
Signed-off-by: Madhuranath Iyengar <Madhu.Iyengar@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_nx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/qla2xxx/qla_nx.c b/drivers/scsi/qla2xxx/qla_nx.c index a971ec31a82e..fdb96a3584a5 100644 --- a/drivers/scsi/qla2xxx/qla_nx.c +++ b/drivers/scsi/qla2xxx/qla_nx.c | |||
@@ -2561,7 +2561,7 @@ qla2xx_build_scsi_type_6_iocbs(srb_t *sp, struct cmd_type_6 *cmd_pkt, | |||
2561 | *cur_dsd++ = cpu_to_le32(LSD(sle_dma)); | 2561 | *cur_dsd++ = cpu_to_le32(LSD(sle_dma)); |
2562 | *cur_dsd++ = cpu_to_le32(MSD(sle_dma)); | 2562 | *cur_dsd++ = cpu_to_le32(MSD(sle_dma)); |
2563 | *cur_dsd++ = cpu_to_le32(sg_dma_len(cur_seg)); | 2563 | *cur_dsd++ = cpu_to_le32(sg_dma_len(cur_seg)); |
2564 | cur_seg++; | 2564 | cur_seg = sg_next(cur_seg); |
2565 | avail_dsds--; | 2565 | avail_dsds--; |
2566 | } | 2566 | } |
2567 | } | 2567 | } |