summaryrefslogtreecommitdiff
path: root/drivers/base
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2012-01-31 11:48:18 +0800
committerLokesh Pathak <lpathak@nvidia.com>2012-03-05 07:59:36 -0800
commitf0c0620f781a8e632c02edddb57b6923358f6619 (patch)
treef24b0d76be3a5a0fabdafc123c0c3dafb34667b4 /drivers/base
parentafb74b6de29f8219824b93c3743b418a66df494a (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> (cherry picked from commit aa795d129246cb4c973076e3242b8a2eb374f1ef) Change-Id: I83bbce848914e4648723a5c5dd0ca7f04ba0c64e Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/87586
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 c152646db79f..d46856f45866 100644
--- a/drivers/base/regmap/regcache.c
+++ b/drivers/base/regmap/regcache.c
@@ -388,7 +388,6 @@ bool regcache_set_val(void *base, unsigned int idx,
default:
BUG();
}
- /* unreachable */
return false;
}