summaryrefslogtreecommitdiff
path: root/drivers/base
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2012-01-31 07:48:18 +0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-01-31 15:25:08 +0400
commitaa795d129246cb4c973076e3242b8a2eb374f1ef (patch)
tree293e910cb30abab980470be02a3d4fdadc4046eb /drivers/base
parent4191f19792bf91267835eb090d970e9cd6277a65 (diff)
downloadlinux-aa795d129246cb4c973076e3242b8a2eb374f1ef.tar.xz
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')
-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 99beccfad4d7..7e18d1e70f12 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;
}