comedi_test: Remove unnecessary assignment of 'go' when checking data
authorIan Abbott <abbotti@mev.co.uk>
Mon, 27 Jun 2011 12:08:08 +0000 (13:08 +0100)
committerIan Abbott <abbotti@mev.co.uk>
Mon, 27 Jun 2011 12:08:08 +0000 (13:08 +0100)
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 <abbotti@mev.co.uk>
testing/mmap.c

index deb95e55da54065091188401aeba9b739faf3a5e..780d87923fcce08daf4d14c1fb51681f128360ee 100644 (file)
@@ -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;
                }