Explorar el Código

[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>
Jens Axboe hace 17 años
padre
commit
ad0d4083e6
Se han modificado 1 ficheros con 0 adiciones y 2 borrados
  1. 0 2
      block/ll_rw_blk.c

+ 0 - 2
block/ll_rw_blk.c

@@ -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;