[BLOCK] Don't clear sg_dma_len/addr() in blk_rq_map_sg()
Jens Axboe [Tue, 23 Oct 2007 07:27:05 +0000 (09:27 +0200)]
It's not a proper lvalue on all archs.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>

block/ll_rw_blk.c

index 61c2e39..fb8fb88 100644 (file)
@@ -1354,8 +1354,6 @@ new_segment:
                        else
                                sg = sg_next(sg);
 
-                       sg_dma_len(sg) = 0;
-                       sg_dma_address(sg) = 0;
                        sg_set_page(sg, bvec->bv_page);
                        sg->length = nbytes;
                        sg->offset = bvec->bv_offset;