]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[BLOCK] Don't clear sg_dma_len/addr() in blk_rq_map_sg()
authorJens Axboe <jens.axboe@oracle.com>
Tue, 23 Oct 2007 07:27:05 +0000 (09:27 +0200)
committerJens Axboe <jens.axboe@oracle.com>
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 61c2e396f2faf402a7b0c95779beb5a12eb2946f..fb8fb8852c3b478a80741ee2a7d95343332e43a8 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;