From: Jens Axboe Date: Wed, 11 Jul 2018 19:48:32 +0000 (-0600) Subject: axmap: remove unused 'data' argument to topdown handler X-Git-Tag: fio-3.8~7 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=c406445ac5bf84ea1e529a755c157aa2a563e306;p=fio.git axmap: remove unused 'data' argument to topdown handler Signed-off-by: Jens Axboe --- 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; }