swiotlb: clean up swiotlb_tbl_unmap_single
authorChristoph Hellwig <hch@lst.de>
Thu, 4 Feb 2021 09:13:40 +0000 (10:13 +0100)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Sat, 20 Feb 2021 15:13:51 +0000 (10:13 -0500)
commitca10d0f8e530600ec63c603dbace2c30927d70b7
tree64eda1764b02bec5bef506ee160a679fbc5cece8
parentc32a77fd18780a5192dfb6eec69f239faebf28fd
swiotlb: clean up swiotlb_tbl_unmap_single

Remove a layer of pointless indentation, replace a hard to follow
ternary expression with a plain if/else.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Jianxiong Gao <jxgao@google.com>
Tested-by: Jianxiong Gao <jxgao@google.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
kernel/dma/swiotlb.c