diff options
author | Maarten ter Huurne <maarten@treewalker.org> | 2013-05-31 16:45:13 +0200 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-06-01 20:10:05 +0100 |
commit | f3284f91535cc2e1406b7efe27a1de96c96c19b4 (patch) | |
tree | 06c93c67394e28fc66d0d5ba416eee58ce0677bd | |
parent | f20c783c3ae33c30fd7cf0616db18d30cb6e802b (diff) | |
download | blackbird-op-linux-f3284f91535cc2e1406b7efe27a1de96c96c19b4.tar.gz blackbird-op-linux-f3284f91535cc2e1406b7efe27a1de96c96c19b4.zip |
regmap: rbtree: Fixed node range check on sync
A node starting before the minimum register is no reason to reject it,
since its end could be in range. The check for the end already exists
two lines lower, so we can just remove the incorrect check.
Signed-off-by: Maarten ter Huurne <maarten@treewalker.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
-rw-r--r-- | drivers/base/regmap/regcache-rbtree.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/base/regmap/regcache-rbtree.c b/drivers/base/regmap/regcache-rbtree.c index b4e343b64c83..02f490bad30f 100644 --- a/drivers/base/regmap/regcache-rbtree.c +++ b/drivers/base/regmap/regcache-rbtree.c @@ -391,8 +391,6 @@ static int regcache_rbtree_sync(struct regmap *map, unsigned int min, for (node = rb_first(&rbtree_ctx->root); node; node = rb_next(node)) { rbnode = rb_entry(node, struct regcache_rbtree_node, node); - if (rbnode->base_reg < min) - continue; if (rbnode->base_reg > max) break; if (rbnode->base_reg + rbnode->blklen < min) |