Skip to content

Commit

Permalink
regmap: Remove incorrect unreachable comment in regcache_set_val()
Browse files Browse the repository at this point in the history
regcache_set_val() returns false if cache[idx] != val.
Thus it actually is not unreachable.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Axel Lin authored and Mark Brown committed Jan 31, 2012
1 parent 4191f19 commit aa795d1
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/base/regmap/regcache.c
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,6 @@ bool regcache_set_val(void *base, unsigned int idx,
default:
BUG();
}
/* unreachable */
return false;
}

Expand Down

0 comments on commit aa795d1

Please sign in to comment.