]> git.baikalelectronics.ru Git - kernel.git/commit
regmap: rbtree: Don't bother checking for noop updates
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 21 Feb 2013 18:01:54 +0000 (18:01 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 4 Mar 2013 02:30:27 +0000 (10:30 +0800)
commit9725f6e5a259565e0a9afc9de2bafc645073a5ab
treea6eb3af5c0766c8ef9b105e885ae874b9806f515
parent1550423bbae002d3be1ebdba2fe7b0d0e8ade01e
regmap: rbtree: Don't bother checking for noop updates

If we're updating a value in place it's more work to read the value and
compare the value with what we're about to set than it is to just write
the value into the cache; there are no further operations after writing
in the code even though there's an early return here.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/base/regmap/regcache-rbtree.c