Skip to content

Commit 9ed1d7f

Browse files
Vasant Hegde via iommujoergroedel
authored andcommitted
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 <[email protected]> Fixes: 06687a0 ("iommu/amd: Improve error handling for amd_iommu_init_pci") Signed-off-by: Vasant Hegde <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Joerg Roedel <[email protected]>
1 parent 5edde87 commit 9ed1d7f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/iommu/amd/init.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1986,8 +1986,7 @@ static int __init amd_iommu_init_pci(void)
19861986
for_each_iommu(iommu)
19871987
iommu_flush_all_caches(iommu);
19881988

1989-
if (!ret)
1990-
print_iommu_info();
1989+
print_iommu_info();
19911990

19921991
out:
19931992
return ret;

0 commit comments

Comments
 (0)