diff options
author | Tianyu Lan <tiala@microsoft.com> | 2022-07-22 06:38:46 +0300 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2022-07-22 18:20:56 +0300 |
commit | 72311809031217714e635b24f8478e6ecb0d93d9 (patch) | |
tree | 16ba453bcd936f8d97d6f66c3469fb99a3a1581b /drivers/pci/Kconfig | |
parent | a45e52bf1eca9bf8a7d075ce12b1e306497ce393 (diff) | |
download | linux-72311809031217714e635b24f8478e6ecb0d93d9.tar.xz |
swiotlb: clean up some coding style and minor issues
- Fix the used field of struct io_tlb_area wasn't initialized
- Set area number to be 0 if input area number parameter is 0
- Use array_size() to calculate io_tlb_area array size
- Make parameters of swiotlb_do_find_slots() more reasonable
Fixes: 26ffb91fa5e0 ("swiotlb: split up the global swiotlb lock")
Signed-off-by: Tianyu Lan <tiala@microsoft.com>
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/pci/Kconfig')
0 files changed, 0 insertions, 0 deletions