From: Kees Cook Date: Thu, 1 Nov 2018 22:30:05 +0000 (-0700) Subject: pstore: Replace open-coded << with BIT() X-Git-Tag: v5.0-rc1~136^2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4af62a6423d0ad98e3eee2bec4305dde8deefefe;p=thirdparty%2Fkernel%2Flinux.git pstore: Replace open-coded << with BIT() Minor clean-up to use BIT() (as already done in pstore_ram.h). Signed-off-by: Kees Cook --- diff --git a/include/linux/pstore.h b/include/linux/pstore.h index 81669aa800274..f46e5df76b583 100644 --- a/include/linux/pstore.h +++ b/include/linux/pstore.h @@ -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 *);