VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   33 Branches   55 Tags
author: Nathan Chancellor <natechancellor@gmail.com> 2020-10-06 12:58:48 -0700 committer: Herbert Xu <herbert@gondor.apana.org.au> 2020-10-08 16:38:06 +1100 commit: 10b0f78a73237181260fc3661577d59b475f8a20 parent: 4f28945da0c502c794eb4e4d535d3ba65d3c9769
Commit Summary:
crypto: xor - Remove unused variable count in do_xor_speed
Diffstat:
1 file changed, 1 insertion, 3 deletions
diff --git a/crypto/xor.c b/crypto/xor.c
index a0badbc03577..eacbf4f93990 100644
--- a/crypto/xor.c
+++ b/crypto/xor.c
@@ -83,7 +83,7 @@ static void __init
 do_xor_speed(struct xor_block_template *tmpl, void *b1, void *b2)
 {
 	int speed;
-	int i, j, count;
+	int i, j;
 	ktime_t min, start, diff;
 
 	tmpl->next = template_list;
@@ -98,8 +98,6 @@ do_xor_speed(struct xor_block_template *tmpl, void *b1, void *b2)
 			mb(); /* prevent loop optimzation */
 			tmpl->do_2(BENCH_SIZE, b1, b2);
 			mb();
-			count++;
-			mb();
 		}
 		diff = ktime_sub(ktime_get(), start);
 		if (diff < min)