Skip to content
Snippets Groups Projects
Commit e98f3044 authored by Alessandro Rubini's avatar Alessandro Rubini
Browse files

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


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