]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: lustre: lnet: use BIT macro in LNet selftest
authorJames Simmons <jsimmons@infradead.org>
Thu, 17 Nov 2016 19:35:56 +0000 (14:35 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Nov 2016 07:47:32 +0000 (08:47 +0100)
Some of the defines for lnet selftest can use the BIT
macros.

Signed-off-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lnet/selftest/timer.c

index a4b723b23f513b8f139873d09180c949873ab206..2fe692df19d0a9f3d309d300c15bee93aec14ac1 100644 (file)
@@ -46,9 +46,9 @@
  * to cover a time period of 1024 seconds into the future before wrapping.
  */
 #define STTIMER_MINPOLL        3       /* log2 min poll interval (8 s) */
-#define STTIMER_SLOTTIME       (1 << STTIMER_MINPOLL)
+#define STTIMER_SLOTTIME       BIT(STTIMER_MINPOLL)
 #define STTIMER_SLOTTIMEMASK   (~(STTIMER_SLOTTIME - 1))
-#define STTIMER_NSLOTS        (1 << 7)
+#define STTIMER_NSLOTS         BIT(7)
 #define STTIMER_SLOT(t)               (&stt_data.stt_hash[(((t) >> STTIMER_MINPOLL) & \
                                                    (STTIMER_NSLOTS - 1))])