swiotlb: use swiotlb_map_page in swiotlb_map_sg_attrs
authorChristoph Hellwig <hch@lst.de>
Mon, 20 Aug 2018 13:56:05 +0000 (15:56 +0200)
committerChristoph Hellwig <hch@lst.de>
Fri, 19 Oct 2018 06:44:39 +0000 (08:44 +0200)
commit4803b44e68fc08e76f00dec90074d199a11ad6f5
tree65c623ccd532141da3e01b6a084ab405112607d8
parent27744e0077f4c8b40aaa3126256708c21e56655d
swiotlb: use swiotlb_map_page in swiotlb_map_sg_attrs

No need to duplicate the code - map_sg is equivalent to map_page
for each page in the scatterlist.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
kernel/dma/swiotlb.c