Skip to content

Commit add00c7

Browse files
committed
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>
1 parent eae5acb commit add00c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/bitmap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,7 @@ EXPORT_SYMBOL(bitmap_find_free_region);
821821
*/
822822
void bitmap_release_region(unsigned long *bitmap, unsigned int pos, int order)
823823
{
824-
__reg_op(bitmap, pos, order, REG_OP_RELEASE);
824+
bitmap_clear(bitmap, pos, BIT(order));
825825
}
826826
EXPORT_SYMBOL(bitmap_release_region);
827827

0 commit comments

Comments
 (0)