bitmap: replace _reg_op(REG_OP_RELEASE) with bitmap_clear()
authorYury Norov <yury.norov@gmail.com>
Mon, 25 Sep 2023 02:38:14 +0000 (19:38 -0700)
committerYury Norov <yury.norov@gmail.com>
Sun, 15 Oct 2023 03:25:22 +0000 (20:25 -0700)
_reg_op(REG_OP_RELEASE) duplicates bitmap_clear().

CC: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
CC: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Yury Norov <yury.norov@gmail.com>
lib/bitmap.c

index 8ee7d4857179d5f29c31cae476cea6cb257c263d..babed4dcb4679627778e6a0b1c09f9167b842788 100644 (file)
@@ -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);