From: Yury Norov Date: Mon, 25 Sep 2023 02:38:14 +0000 (-0700) Subject: bitmap: replace _reg_op(REG_OP_RELEASE) with bitmap_clear() X-Git-Tag: v6.7-rc1~88^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=add00c76ee4dafbc35b170bea144358fd62daebb;p=thirdparty%2Fkernel%2Flinux.git bitmap: replace _reg_op(REG_OP_RELEASE) with bitmap_clear() _reg_op(REG_OP_RELEASE) duplicates bitmap_clear(). CC: Andy Shevchenko CC: Rasmus Villemoes Signed-off-by: Yury Norov --- diff --git a/lib/bitmap.c b/lib/bitmap.c index 8ee7d4857179d..babed4dcb4679 100644 --- a/lib/bitmap.c +++ b/lib/bitmap.c @@ -821,7 +821,7 @@ EXPORT_SYMBOL(bitmap_find_free_region); */ void bitmap_release_region(unsigned long *bitmap, unsigned int pos, int order) { - __reg_op(bitmap, pos, order, REG_OP_RELEASE); + bitmap_clear(bitmap, pos, BIT(order)); } EXPORT_SYMBOL(bitmap_release_region);