lkml.org 
[lkml]   [2017]   [Oct]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] agp: amd64: remove redundant assignment of i = 0
Date
From: Colin Ian King <colin.king@canonical.com>

The assignent of i = 0 is redundant as it is re-assigned to zero
in the following for-loop. Clean this up by removing it.

Cleans up clang warning: Value stored to 'i' is never read

Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
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 e50c29c97ca7..f54d894933a3 100644
--- a/drivers/char/agp/amd64-agp.c
+++ b/drivers/char/agp/amd64-agp.c
@@ -332,7 +332,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.14.1
\
 
 \ /
  Last update: 2017-10-12 17:37    [W:0.025 / U:6.180 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site