[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20210811015717.9186-1-yang.guang5@zte.com.cn>
Date: Tue, 10 Aug 2021 18:57:17 -0700
From: cgel.zte@...il.com
To: airlied@...ux.ie
Cc: linux-kernel@...r.kernel.org, Yang Guang <yang.guang5@....com.cn>,
Zeal Robot <zealci@....com.cn>
Subject: [PATCH agp] [amd64] Remove redundant assignment to variable
From: Yang Guang <yang.guang5@....com.cn>
The variable i has been assigned in the for loop and has not been used
elsewhere. From the perspective of clean code, it can be deleted.
Reported-by: Zeal Robot <zealci@....com.cn>
Signed-off-by: Yang Guang <yang.guang5@....com.cn>
---
drivers/char/agp/amd64-agp.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/char/agp/amd64-agp.c b/drivers/char/agp/amd64-agp.c
index b40edae32817..0413b3136541 100644
--- a/drivers/char/agp/amd64-agp.c
+++ b/drivers/char/agp/amd64-agp.c
@@ -333,7 +333,6 @@ static int cache_nbs(struct pci_dev *pdev, u32 cap_ptr)
if (!amd_nb_has_feature(AMD_NB_GART))
return -ENODEV;
- i = 0;
for (i = 0; i < amd_nb_num(); i++) {
struct pci_dev *dev = node_to_amd_nb(i)->misc;
if (fix_northbridge(dev, pdev, cap_ptr) < 0) {
--
2.25.1
Powered by blists - more mailing lists