pstore: Replace open-coded << with BIT()
authorKees Cook <keescook@chromium.org>
Thu, 1 Nov 2018 22:30:05 +0000 (15:30 -0700)
committerKees Cook <keescook@chromium.org>
Tue, 4 Dec 2018 00:52:35 +0000 (16:52 -0800)
Minor clean-up to use BIT() (as already done in pstore_ram.h).

Signed-off-by: Kees Cook <keescook@chromium.org>
include/linux/pstore.h

index 81669aa800274c1ac1630665b6369e2066a790cd..f46e5df76b583adf83d123cd39945a5c933e7d2f 100644 (file)
@@ -192,10 +192,10 @@ struct pstore_info {
 };
 
 /* Supported frontends */
-#define PSTORE_FLAGS_DMESG     (1 << 0)
-#define PSTORE_FLAGS_CONSOLE   (1 << 1)
-#define PSTORE_FLAGS_FTRACE    (1 << 2)
-#define PSTORE_FLAGS_PMSG      (1 << 3)
+#define PSTORE_FLAGS_DMESG     BIT(0)
+#define PSTORE_FLAGS_CONSOLE   BIT(1)
+#define PSTORE_FLAGS_FTRACE    BIT(2)
+#define PSTORE_FLAGS_PMSG      BIT(3)
 
 extern int pstore_register(struct pstore_info *);
 extern void pstore_unregister(struct pstore_info *);