aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--drivers/md/dm-vdo/memory-alloc.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/md/dm-vdo/memory-alloc.c b/drivers/md/dm-vdo/memory-alloc.c
index 5cd387f9294e..db085c1124be 100644
--- a/drivers/md/dm-vdo/memory-alloc.c
+++ b/drivers/md/dm-vdo/memory-alloc.c
@@ -20,11 +20,9 @@
*/
static struct thread_registry allocating_threads;
-static bool allocations_allowed(void)
+static inline bool allocations_allowed(void)
{
- const bool *pointer = vdo_lookup_thread(&allocating_threads);
-
- return (pointer != NULL) ? *pointer : false;
+ return vdo_lookup_thread(&allocating_threads) != NULL;
}
/*