regmap: Remove incorrect unreachable comment in regcache_set_val()
Axel Lin [Tue, 31 Jan 2012 03:48:18 +0000 (11:48 +0800)]
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

Rebase-Id: Rfbccc3a67df1486ccf07229f0c1226fa3c81277d

drivers/base/regmap/regcache.c

index 9ec57e8..a10e81c 100644 (file)
@@ -389,7 +389,6 @@ bool regcache_set_val(void *base, unsigned int idx,
        default:
                BUG();
        }
-       /* unreachable */
        return false;
 }