Skip to content

Commit

Permalink
[BLOCK] Don't clear sg_dma_len/addr() in blk_rq_map_sg()
Browse files Browse the repository at this point in the history
It's not a proper lvalue on all archs.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
  • Loading branch information
Jens Axboe committed Oct 23, 2007
1 parent 73fc4f0 commit ad0d408
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions block/ll_rw_blk.c
Original file line number Diff line number Diff line change
Expand Up @@ -1354,8 +1354,6 @@ int blk_rq_map_sg(struct request_queue *q, struct request *rq,
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;
Expand Down

0 comments on commit ad0d408

Please sign in to comment.