From: Shaokun Zhang Date: Wed, 19 May 2021 03:37:27 +0000 (+0800) Subject: iommu/amd: Remove redundant assignment of err X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=340ec061f76502befea92d9913886991a60cf15e;p=linux.git iommu/amd: Remove redundant assignment of err 'err' will be initialized and cleanup the redundant initialization. Cc: Joerg Roedel Signed-off-by: Shaokun Zhang Link: https://lore.kernel.org/r/1621395447-34738-1-git-send-email-zhangshaokun@hisilicon.com Signed-off-by: Joerg Roedel --- diff --git a/drivers/iommu/amd/iommu.c b/drivers/iommu/amd/iommu.c index c46dde88a132b..b1fbf2c83df50 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();