[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>
This commit is contained in:
Giridhar Malavali 2010-12-21 16:00:27 -08:00 committed by James Bottomley
parent 900a36e327
commit aa5cbf8a70
1 changed files with 1 additions and 1 deletions

View File

@ -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--;
}
}