From c406445ac5bf84ea1e529a755c157aa2a563e306 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Wed, 11 Jul 2018 13:48:32 -0600 Subject: [PATCH] axmap: remove unused 'data' argument to topdown handler Signed-off-by: Jens Axboe --- lib/axmap.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/axmap.c b/lib/axmap.c index 4dbef31c..4dd4644b 100644 --- a/lib/axmap.c +++ b/lib/axmap.c @@ -173,8 +173,7 @@ static bool axmap_handler(struct axmap *axmap, uint64_t bit_nr, } static bool axmap_handler_topdown(struct axmap *axmap, uint64_t bit_nr, - bool (*func)(struct axmap_level *, unsigned long, unsigned int, void *), - void *data) + bool (*func)(struct axmap_level *, unsigned long, unsigned int, void *)) { struct axmap_level *al; int i; @@ -186,7 +185,7 @@ static bool axmap_handler_topdown(struct axmap *axmap, uint64_t bit_nr, al = &axmap->levels[i]; - if (func(al, offset, bit, data)) + if (func(al, offset, bit, NULL)) return true; } @@ -329,7 +328,7 @@ static bool axmap_isset_fn(struct axmap_level *al, unsigned long offset, bool axmap_isset(struct axmap *axmap, uint64_t bit_nr) { if (bit_nr <= axmap->nr_bits) - return axmap_handler_topdown(axmap, bit_nr, axmap_isset_fn, NULL); + return axmap_handler_topdown(axmap, bit_nr, axmap_isset_fn); return false; } -- 2.25.1