summaryrefslogtreecommitdiffstats
path: root/drivers/base/regmap
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2012-01-31 11:48:18 +0800
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-01-31 11:25:08 +0000
commitaa795d129246cb4c973076e3242b8a2eb374f1ef (patch)
tree293e910cb30abab980470be02a3d4fdadc4046eb /drivers/base/regmap
parent4191f19792bf91267835eb090d970e9cd6277a65 (diff)
regmap: Remove incorrect unreachable comment in regcache_set_val()
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>
Diffstat (limited to 'drivers/base/regmap')
-rw-r--r--drivers/base/regmap/regcache.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/base/regmap/regcache.c b/drivers/base/regmap/regcache.c
index 99beccfad4d..7e18d1e70f1 100644
--- a/drivers/base/regmap/regcache.c
+++ b/drivers/base/regmap/regcache.c
@@ -375,7 +375,6 @@ bool regcache_set_val(void *base, unsigned int idx,
default:
BUG();
}
- /* unreachable */
return false;
}