Commit 8cb65147 authored by NeilBrown's avatar NeilBrown Committed by Greg Kroah-Hartman

staging: lustre: discard LOWEST_BIT_SET()

This macro is only used once to test if a value is
a power of two.  So use is_power_of_2() instead and
discard the macro.
Signed-off-by: default avatarNeilBrown <neilb@suse.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 18f92a6e
...@@ -89,8 +89,6 @@ ...@@ -89,8 +89,6 @@
#define LIBCFS_VERSION "0.7.0" #define LIBCFS_VERSION "0.7.0"
#define LOWEST_BIT_SET(x) ((x) & ~((x) - 1))
/* /*
* One jiffy * One jiffy
*/ */
......
...@@ -225,7 +225,7 @@ lnet_eq_enqueue_event(struct lnet_eq *eq, struct lnet_event *ev) ...@@ -225,7 +225,7 @@ lnet_eq_enqueue_event(struct lnet_eq *eq, struct lnet_event *ev)
lnet_eq_wait_lock(); lnet_eq_wait_lock();
ev->sequence = eq->eq_enq_seq++; ev->sequence = eq->eq_enq_seq++;
LASSERT(eq->eq_size == LOWEST_BIT_SET(eq->eq_size)); LASSERT(is_power_of_2(eq->eq_size));
index = ev->sequence & (eq->eq_size - 1); index = ev->sequence & (eq->eq_size - 1);
eq->eq_events[index] = *ev; eq->eq_events[index] = *ev;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment