Simplify the code slightly by using a for() loop since this is
basically what we're already doing -- incrementing "ngood" to
the value in "count".
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
}
#endif
- ngood = 0;
-
- while (count-- > 0) {
+ for (ngood = 0; ngood < count; ++ngood) {
ulong word1, word2;
if (size == 4) {
word1 = *(ulong *)addr1;
break;
}
- ngood++;
addr1 += size;
addr2 += size;
/* reset watchdog from time to time */
- if ((count % (64 << 10)) == 0)
+ if ((ngood % (64 << 10)) == 0)
WATCHDOG_RESET();
}