From 23e8eb609e5d07b1f16dc881b1a3400bc1e9e7c7 Mon Sep 17 00:00:00 2001 From: Ian Abbott Date: Mon, 27 Jun 2011 13:08:08 +0100 Subject: [PATCH] comedi_test: Remove unnecessary assignment of 'go' when checking data The 'go' variable is only used by the 'while' loop that reads the data. We don't need to set it in the 'for' loop that checks the data afterwards. Signed-off-by: Ian Abbott --- testing/mmap.c | 1 - 1 file changed, 1 deletion(-) diff --git a/testing/mmap.c b/testing/mmap.c index deb95e5..780d879 100644 --- a/testing/mmap.c +++ b/testing/mmap.c @@ -140,7 +140,6 @@ int test_mmap(void) if(fails==0)printf("E: mmap compare failed\n"); printf("offset %d (read=%02x mmap=%02x)\n",i, buf[i], map[i]); - go = 0; fails++; if(fails>10)break; } -- 2.26.2