Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

Giridhar Malavali and committed by
James Bottomley
aa5cbf8a 900a36e3

+1 -1
+1 -1
drivers/scsi/qla2xxx/qla_nx.c
··· 2561 2561 *cur_dsd++ = cpu_to_le32(LSD(sle_dma)); 2562 2562 *cur_dsd++ = cpu_to_le32(MSD(sle_dma)); 2563 2563 *cur_dsd++ = cpu_to_le32(sg_dma_len(cur_seg)); 2564 - cur_seg++; 2564 + cur_seg = sg_next(cur_seg); 2565 2565 avail_dsds--; 2566 2566 } 2567 2567 }