diff options
author | Vasant Hegde via iommu <iommu@lists.linux-foundation.org> | 2022-03-14 12:32:26 +0530 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2022-05-04 10:32:32 +0200 |
commit | 9ed1d7f510336e283c0bb2d20fd771e9d8fa085b (patch) | |
tree | 38a08105c551bd595834e525e364f3eb258af7ae /drivers/iommu | |
parent | 5edde870d3283edeaa27ab62ac4fac5ee8cae35a (diff) | |
download | linux-stable-9ed1d7f510336e283c0bb2d20fd771e9d8fa085b.tar.gz linux-stable-9ed1d7f510336e283c0bb2d20fd771e9d8fa085b.tar.bz2 linux-stable-9ed1d7f510336e283c0bb2d20fd771e9d8fa085b.zip |
iommu/amd: Remove redundant check
smatch static checker warning:
drivers/iommu/amd/init.c:1989 amd_iommu_init_pci()
warn: duplicate check 'ret' (previous on line 1978)
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Fixes: 06687a03805e ("iommu/amd: Improve error handling for amd_iommu_init_pci")
Signed-off-by: Vasant Hegde <vasant.hegde@amd.com>
Link: https://lore.kernel.org/r/20220314070226.40641-1-vasant.hegde@amd.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu')
-rw-r--r-- | drivers/iommu/amd/init.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/iommu/amd/init.c b/drivers/iommu/amd/init.c index b4a798c7b347..648d6b94ba8c 100644 --- a/drivers/iommu/amd/init.c +++ b/drivers/iommu/amd/init.c @@ -1986,8 +1986,7 @@ static int __init amd_iommu_init_pci(void) for_each_iommu(iommu) iommu_flush_all_caches(iommu); - if (!ret) - print_iommu_info(); + print_iommu_info(); out: return ret; |