aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShaokun Zhang <[email protected]>2021-05-19 11:37:27 +0800
committerJoerg Roedel <[email protected]>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 <[email protected]> Signed-off-by: Shaokun Zhang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Joerg Roedel <[email protected]>
-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();