iommu.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] iommu/amd: Remove redundant assignment of err
@ 2021-05-19  3:37 Shaokun Zhang
  2021-06-04 14:47 ` Joerg Roedel
  0 siblings, 1 reply; 2+ messages in thread
From: Shaokun Zhang @ 2021-05-19  3:37 UTC (permalink / raw)
  To: iommu; +Cc: Shaokun Zhang

'err' will be initialized and cleanup the redundant initialization.

Cc: Joerg Roedel <joro@8bytes.org> 
Signed-off-by: Shaokun Zhang <zhangshaokun@hisilicon.com>
---
 drivers/iommu/amd/iommu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/iommu/amd/iommu.c b/drivers/iommu/amd/iommu.c
index 80e8e1916dd1..bea91cc73153 100644
--- a/drivers/iommu/amd/iommu.c
+++ b/drivers/iommu/amd/iommu.c
@@ -1773,7 +1773,7 @@ void amd_iommu_domain_update(struct protection_domain *domain)
 
 int __init amd_iommu_init_api(void)
 {
-	int ret, err = 0;
+	int ret, err;
 
 	ret = iova_cache_get();
 	if (ret)
-- 
2.7.4

_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] iommu/amd: Remove redundant assignment of err
  2021-05-19  3:37 [PATCH] iommu/amd: Remove redundant assignment of err Shaokun Zhang
@ 2021-06-04 14:47 ` Joerg Roedel
  0 siblings, 0 replies; 2+ messages in thread
From: Joerg Roedel @ 2021-06-04 14:47 UTC (permalink / raw)
  To: Shaokun Zhang; +Cc: iommu

On Wed, May 19, 2021 at 11:37:27AM +0800, Shaokun Zhang wrote:
> 'err' will be initialized and cleanup the redundant initialization.
> 
> Cc: Joerg Roedel <joro@8bytes.org> 
> Signed-off-by: Shaokun Zhang <zhangshaokun@hisilicon.com>

Applied, thanks.
_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-06-04 14:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-19  3:37 [PATCH] iommu/amd: Remove redundant assignment of err Shaokun Zhang
2021-06-04 14:47 ` Joerg Roedel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).