diff options
| author | Yury Norov <[email protected]> | 2023-09-25 02:38:14 +0000 |
|---|---|---|
| committer | Yury Norov <[email protected]> | 2023-10-15 03:25:22 +0000 |
| commit | add00c76ee4dafbc35b170bea144358fd62daebb (patch) | |
| tree | 67728fce6229e16e3a4b6415b887a81101050b46 /lib/bitmap.c | |
| parent | bitmap: replace _reg_op(REG_OP_ALLOC) with bitmap_set() (diff) | |
| download | kernel-add00c76ee4dafbc35b170bea144358fd62daebb.tar.gz kernel-add00c76ee4dafbc35b170bea144358fd62daebb.zip | |
bitmap: replace _reg_op(REG_OP_RELEASE) with bitmap_clear()
_reg_op(REG_OP_RELEASE) duplicates bitmap_clear().
CC: Andy Shevchenko <[email protected]>
CC: Rasmus Villemoes <[email protected]>
Signed-off-by: Yury Norov <[email protected]>
Diffstat (limited to 'lib/bitmap.c')
| -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); |
