projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be227f8
)
iommu/amd: Remove redundant assignment of err
author
Shaokun Zhang
<zhangshaokun@hisilicon.com>
Wed, 19 May 2021 03:37:27 +0000
(11:37 +0800)
committer
Joerg Roedel
<jroedel@suse.de>
Mon, 7 Jun 2021 13:05:06 +0000
(15:05 +0200)
'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>
drivers/iommu/amd/iommu.c
patch
|
blob
|
history
diff --git
a/drivers/iommu/amd/iommu.c
b/drivers/iommu/amd/iommu.c
index c46dde88a132bdb9a91082f108f5efe69c39d283..b1fbf2c83df50671bf98734aa21f96667335c583 100644
(file)
--- 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();