aboutsummaryrefslogtreecommitdiffstats
path: root/block/ll_rw_blk.c
diff options
context:
space:
mode:
authorJens Axboe <jens.axboe@oracle.com>2007-10-23 03:27:05 -0400
committerJens Axboe <jens.axboe@oracle.com>2007-10-23 03:27:05 -0400
commitad0d4083e65d9f223275adbfb9a7927e2120dc6c (patch)
treeb07eca59562b5839aa30fc7924763a685112ca2e /block/ll_rw_blk.c
parent73fc4f0d2ce4a92c36b00649c58e0a068a6cdfa4 (diff)
[BLOCK] Don't clear sg_dma_len/addr() in blk_rq_map_sg()
It's not a proper lvalue on all archs. Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'block/ll_rw_blk.c')
-rw-r--r--block/ll_rw_blk.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/block/ll_rw_blk.c b/block/ll_rw_blk.c
index 61c2e396f2fa..fb8fb8852c3b 100644
--- a/block/ll_rw_blk.c
+++ b/block/ll_rw_blk.c
@@ -1354,8 +1354,6 @@ new_segment:
1354 else 1354 else
1355 sg = sg_next(sg); 1355 sg = sg_next(sg);
1356 1356
1357 sg_dma_len(sg) = 0;
1358 sg_dma_address(sg) = 0;
1359 sg_set_page(sg, bvec->bv_page); 1357 sg_set_page(sg, bvec->bv_page);
1360 sg->length = nbytes; 1358 sg->length = nbytes;
1361 sg->offset = bvec->bv_offset; 1359 sg->offset = bvec->bv_offset;