From: Ian Abbott Date: Mon, 27 Jun 2011 12:08:08 +0000 (+0100) Subject: comedi_test: Remove unnecessary assignment of 'go' when checking data X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=23e8eb609e5d07b1f16dc881b1a3400bc1e9e7c7;p=comedilib.git 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 --- 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; }