projects
/
comedilib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
261d3e1
)
comedi_test: Remove unnecessary assignment of 'go' when checking data
author
Ian Abbott
<abbotti@mev.co.uk>
Mon, 27 Jun 2011 12:08:08 +0000
(13:08 +0100)
committer
Ian 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
patch
|
blob
|
history
diff --git
a/testing/mmap.c
b/testing/mmap.c
index deb95e55da54065091188401aeba9b739faf3a5e..780d87923fcce08daf4d14c1fb51681f128360ee 100644
(file)
--- 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;
}