Skip to content

Commit

Permalink
l2tp: prefer using BIT macro
Browse files Browse the repository at this point in the history
Use BIT(x) rather than (1<<x), reported by checkpatch.pl.

Signed-off-by: Tom Parkin <[email protected]>
  • Loading branch information
tomparkin authored and intel-lab-lkp committed Jul 21, 2020
1 parent ecd4405 commit e907abd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/l2tp/l2tp_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit e907abd

Please sign in to comment.