[PATCH 28/34] kernelshark: Fixed loop counter incremented suspiciously twice

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Benjamin ROBIN <dev@xxxxxxxxxxxxx>
---
 examples/datafilter.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/examples/datafilter.c b/examples/datafilter.c
index 38afab8..8e86d9c 100644
--- a/examples/datafilter.c
+++ b/examples/datafilter.c
@@ -69,7 +69,6 @@ int main(int argc, char **argv)
 
 	/* Print to the screen the first 10 visible entries. */
 	count = 0;
-	i = 0;
 	for (i = 0; i < n_rows; ++i) {
 		if (data[i]->visible & KS_TEXT_VIEW_FILTER_MASK) {
 			entry_str = kshark_dump_entry(data[i]);
@@ -79,8 +78,6 @@ int main(int argc, char **argv)
 			if (++count > 10)
 				break;
 		}
-
-		++i;
 	}
 
 	puts("\n\n");
@@ -102,7 +99,6 @@ int main(int argc, char **argv)
 
 	/* Print to the screen the first 10 visible entries. */
 	count = 0;
-	i = 0;
 	for (i = 0; i < n_rows; ++i) {
 		if (data[i]->visible & KS_TEXT_VIEW_FILTER_MASK) {
 			entry_str = kshark_dump_entry(data[i]);
@@ -112,8 +108,6 @@ int main(int argc, char **argv)
 			if (++count > 10)
 				break;
 		}
-
-		++i;
 	}
 
 	puts("\n\n");
-- 
2.43.0





[Index of Archives]     [Linux USB Development]     [Linux USB Development]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux