Strange code in initio.c?

2007-12-19 Thread Rusty Russell
Hi Alan, Was looking through initio.c to convert it to sg_ring, and noticed this code: initio_build_scb() around 2616: sg = &cblk->sglist[0]; scsi_for_each_sg(cmnd, sglist, cblk->sglen, i) { sg->data = cpu_to_le32((u32)sg_dma_addres

Re: Strange code in initio.c?

2007-12-19 Thread Boaz Harrosh
On Thu, Dec 20 2007 at 9:22 +0200, Rusty Russell <[EMAIL PROTECTED]> wrote: > Hi Alan, > > Was looking through initio.c to convert it to sg_ring, and noticed this > code: > > initio_build_scb() around 2616: > sg = &cblk->sglist[0]; > scsi_for_each_sg(cmnd, sglis

Re: Strange code in initio.c?

2007-12-19 Thread FUJITA Tomonori
On Thu, 20 Dec 2007 18:22:54 +1100 Rusty Russell <[EMAIL PROTECTED]> wrote: > Hi Alan, > > Was looking through initio.c to convert it to sg_ring, and noticed this > code: > > initio_build_scb() around 2616: > sg = &cblk->sglist[0]; > scsi_for_each_sg(cmnd, sgli