Commit e98f3044 authored by Alessandro Rubini's avatar Alessandro Rubini

kernel/wr-nic-dio.c: fix buglet in cmd_stamp

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 147c9b20
......@@ -175,7 +175,7 @@ static int wrn_dio_cmd_stamp(struct wrn_drvdata *drvdata,
/* handle the 1-channel and mask case in the same loop */
for (; ch <= last; ch++) {
if ((ch & mask) == 0)
if (((1 << ch) & mask) == 0)
continue;
map = regmap + ch;
while (1) {
......
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