summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShaokun Zhang <zhangshaokun@hisilicon.com>2021-05-19 11:37:27 +0800
committerJoerg Roedel <jroedel@suse.de>2021-06-07 15:05:06 +0200
commit340ec061f76502befea92d9913886991a60cf15e (patch)
treeb2b10226d89737a9ff389e4160b3247920474ef1
parentbe227f8e99a663d097536e9f9bc935fb26bdbc41 (diff)
iommu/amd: Remove redundant assignment of err
'err' will be initialized and cleanup the redundant initialization. Cc: Joerg Roedel <joro@8bytes.org> Signed-off-by: Shaokun Zhang <zhangshaokun@hisilicon.com> Link: https://lore.kernel.org/r/1621395447-34738-1-git-send-email-zhangshaokun@hisilicon.com Signed-off-by: Joerg Roedel <jroedel@suse.de>
-rw-r--r--drivers/iommu/amd/iommu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/amd/iommu.c b/drivers/iommu/amd/iommu.c
index c46dde88a132..b1fbf2c83df5 100644
--- a/drivers/iommu/amd/iommu.c
+++ b/drivers/iommu/amd/iommu.c
@@ -1785,7 +1785,7 @@ static void __init amd_iommu_init_dma_ops(void)
int __init amd_iommu_init_api(void)
{
- int err = 0;
+ int err;
amd_iommu_init_dma_ops();