diff options
author | Giridhar Malavali <giridhar.malavali@qlogic.com> | 2010-12-22 03:00:27 +0300 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-12-24 01:09:47 +0300 |
commit | aa5cbf8a70f57c5360ce1bfef692b357c866ae7f (patch) | |
tree | e9bc1f82c55464ff803e14438b2fbc9438ec3575 /drivers/scsi | |
parent | 900a36e3277ac9109fe364a6a1420c71265f9377 (diff) | |
download | linux-aa5cbf8a70f57c5360ce1bfef692b357c866ae7f.tar.xz |
[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/scsi')
-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, *cur_dsd++ = cpu_to_le32(LSD(sle_dma)); *cur_dsd++ = cpu_to_le32(MSD(sle_dma)); *cur_dsd++ = cpu_to_le32(sg_dma_len(cur_seg)); - cur_seg++; + cur_seg = sg_next(cur_seg); avail_dsds--; } } |