Skip to content

Commit 354662d

Browse files
andy-shevbroonie
authored andcommitted
regmap: cache: Use correct type of the rb_for_each() parameter
Compiler is not happy: regcache.c:410:9: warning: Using plain integer as NULL pointer Replace integer 0 by NULL. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20240606164717.3031107-3-andriy.shevchenko@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent f6841d4 commit 354662d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/base/regmap/regcache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ int regcache_sync(struct regmap *map)
407407
* have gone out of sync, force writes of all the paging
408408
* registers.
409409
*/
410-
rb_for_each(node, 0, &map->range_tree, rbtree_all) {
410+
rb_for_each(node, NULL, &map->range_tree, rbtree_all) {
411411
struct regmap_range_node *this =
412412
rb_entry(node, struct regmap_range_node, node);
413413

0 commit comments

Comments
 (0)