Re: [PATCH] ALSA: emu10k1: Stop using iommu_present()

2022-04-05 Thread Robin Murphy
On 2022-04-05 13:29, Takashi Iwai wrote: On Tue, 05 Apr 2022 14:13:33 +0200, Robin Murphy wrote: iommu_get_domain_for_dev() is already perfectly happy to return NULL if the given device has no IOMMU. Drop the unnecessary check. Signed-off-by: Robin Murphy This will change the code behavior.

Re: [PATCH] ALSA: emu10k1: Stop using iommu_present()

2022-04-05 Thread Takashi Iwai
On Tue, 05 Apr 2022 14:13:33 +0200, Robin Murphy wrote: > > iommu_get_domain_for_dev() is already perfectly happy to return NULL > if the given device has no IOMMU. Drop the unnecessary check. > > Signed-off-by: Robin Murphy This will change the code behavior. The current code does nothing if

[PATCH] ALSA: emu10k1: Stop using iommu_present()

2022-04-05 Thread Robin Murphy
iommu_get_domain_for_dev() is already perfectly happy to return NULL if the given device has no IOMMU. Drop the unnecessary check. Signed-off-by: Robin Murphy --- sound/pci/emu10k1/emu10k1_main.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/sound/pci/emu10k1/emu10k1_main.c b/sound/pci/e