diff options
author | Tom Parkin <tparkin@katalix.com> | 2020-07-22 19:32:11 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-07-23 04:08:39 +0300 |
commit | dbf82f3fac9d7cde572b08bde94d8aa117f92ac9 (patch) | |
tree | e59aeaffb4911ffc7fb70c816244d6422dcd80dd | |
parent | bef04d162c52bd7e0b98ba5ee3f904e6556c6551 (diff) | |
download | linux-dbf82f3fac9d7cde572b08bde94d8aa117f92ac9.tar.xz |
l2tp: prefer using BIT macro
Use BIT(x) rather than (1<<x), reported by checkpatch.pl.
Signed-off-by: Tom Parkin <tparkin@katalix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/l2tp/l2tp_core.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/l2tp/l2tp_core.h b/net/l2tp/l2tp_core.h index f23b3ff7ffff..2d2dd219a176 100644 --- a/net/l2tp/l2tp_core.h +++ b/net/l2tp/l2tp_core.h @@ -21,11 +21,11 @@ /* Per tunnel, session hash table size */ #define L2TP_HASH_BITS 4 -#define L2TP_HASH_SIZE (1 << L2TP_HASH_BITS) +#define L2TP_HASH_SIZE BIT(L2TP_HASH_BITS) /* System-wide, session hash table size */ #define L2TP_HASH_BITS_2 8 -#define L2TP_HASH_SIZE_2 (1 << L2TP_HASH_BITS_2) +#define L2TP_HASH_SIZE_2 BIT(L2TP_HASH_BITS_2) struct sk_buff; |