Re: [PATCH -next] iommu/amd: Remove set but not used variable 'iommu'
On Fri, May 08, 2020 at 01:40:36PM +, YueHaibing wrote: > Fixes gcc '-Wunused-but-set-variable' warning: > > drivers/iommu/amd_iommu.c: In function 'amd_iommu_uninit_device': > drivers/iommu/amd_iommu.c:422:20: warning: > variable 'iommu' set but not used [-Wunused-but-set-variable] > > commit dce8d6964ebd ("iommu/amd: Convert to probe/release_device() > call-backs") > involved this, remove it. > > Signed-off-by: YueHaibing > --- > drivers/iommu/amd_iommu.c | 3 --- > 1 file changed, 3 deletions(-) Thanks for the patch, but I already applied https://lore.kernel.org/r/20200509015645.3236-1-...@lca.pw Regards, Joerg ___ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/iommu
[PATCH -next] iommu/amd: Remove set but not used variable 'iommu'
Fixes gcc '-Wunused-but-set-variable' warning: drivers/iommu/amd_iommu.c: In function 'amd_iommu_uninit_device': drivers/iommu/amd_iommu.c:422:20: warning: variable 'iommu' set but not used [-Wunused-but-set-variable] commit dce8d6964ebd ("iommu/amd: Convert to probe/release_device() call-backs") involved this, remove it. Signed-off-by: YueHaibing --- drivers/iommu/amd_iommu.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c index fef3689ee535..2b8eb58d2bea 100644 --- a/drivers/iommu/amd_iommu.c +++ b/drivers/iommu/amd_iommu.c @@ -419,15 +419,12 @@ static void iommu_ignore_device(struct device *dev) static void amd_iommu_uninit_device(struct device *dev) { struct iommu_dev_data *dev_data; - struct amd_iommu *iommu; int devid; devid = get_device_id(dev); if (devid < 0) return; - iommu = amd_iommu_rlookup_table[devid]; - dev_data = search_dev_data(devid); if (!dev_data) return; ___ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/iommu