Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ad0d4083 authored by Jens Axboe's avatar Jens Axboe
Browse files

[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: default avatarJens Axboe <jens.axboe@oracle.com>
parent 73fc4f0d
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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;