diff options
author | Yury Norov <yury.norov@gmail.com> | 2023-09-24 19:38:14 -0700 |
---|---|---|
committer | Yury Norov <yury.norov@gmail.com> | 2023-10-14 20:25:22 -0700 |
commit | add00c76ee4dafbc35b170bea144358fd62daebb (patch) | |
tree | 67728fce6229e16e3a4b6415b887a81101050b46 /lib | |
parent | eae5acbd7572f2874cd2f04dd540870dca256826 (diff) |
bitmap: replace _reg_op(REG_OP_RELEASE) with bitmap_clear()
_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>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bitmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bitmap.c b/lib/bitmap.c index 8ee7d4857179..babed4dcb467 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); |