Commit 9d4d08e5 authored by Benoit Rat's avatar Benoit Rat Committed by Alessandro Rubini

kernel: correct warning for uninitialized variable

parent 81268396
......@@ -228,11 +228,11 @@ again:
mask = (1 << ch);
}
/* handle the 1-channel and mask case in the same loop */
for (; ch <= last; ch++) {
c = d->ch + ch;
for (; ch <= last; ch++, c++) {
if (((1 << ch) & mask) == 0)
continue;
map = regmap + ch;
c = d->ch + ch;
while (1) {
if (nstamp == WR_DIO_N_STAMP)
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment