diff options
author | Tom Parkin <tparkin@katalix.com> | 2020-07-22 17:32:14 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-07-22 18:08:39 -0700 |
commit | efcd8c8540f73829a26f5d224ebdd99382fd1552 (patch) | |
tree | e0880144f3ac858231f113b25fd4e75444c2af7a /net/l2tp | |
parent | c0235fb39b0cdb8e33f1a68a031a94544487a56d (diff) | |
download | linux-stable-efcd8c8540f73829a26f5d224ebdd99382fd1552.tar.gz linux-stable-efcd8c8540f73829a26f5d224ebdd99382fd1552.tar.bz2 linux-stable-efcd8c8540f73829a26f5d224ebdd99382fd1552.zip |
l2tp: avoid precidence issues in L2TP_SKB_CB macro
checkpatch warned about the L2TP_SKB_CB macro's use of its argument: add
braces to avoid the problem.
Signed-off-by: Tom Parkin <tparkin@katalix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/l2tp')
-rw-r--r-- | net/l2tp/l2tp_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/l2tp/l2tp_core.c b/net/l2tp/l2tp_core.c index 3dc712647f34..6871611d99f2 100644 --- a/net/l2tp/l2tp_core.c +++ b/net/l2tp/l2tp_core.c @@ -93,7 +93,7 @@ struct l2tp_skb_cb { unsigned long expires; }; -#define L2TP_SKB_CB(skb) ((struct l2tp_skb_cb *)&skb->cb[sizeof(struct inet_skb_parm)]) +#define L2TP_SKB_CB(skb) ((struct l2tp_skb_cb *)&(skb)->cb[sizeof(struct inet_skb_parm)]) static struct workqueue_struct *l2tp_wq; |