summaryrefslogtreecommitdiffstats
path: root/net/l2tp/l2tp_ip.c
diff options
context:
space:
mode:
authorGuillaume Nault2017-01-06 20:03:55 +0100
committerDavid S. Miller2017-01-07 04:18:56 +0100
commitbb39b0bdc8c62e97ceedb9a5dadea0f098431d8b (patch)
tree4d07c8a52eae4b33e2aaeae603509f740fa6f89e /net/l2tp/l2tp_ip.c
parentl2tp: remove redundant addr_len check in l2tp_ip_bind() (diff)
downloadkernel-qcow2-linux-bb39b0bdc8c62e97ceedb9a5dadea0f098431d8b.tar.gz
kernel-qcow2-linux-bb39b0bdc8c62e97ceedb9a5dadea0f098431d8b.tar.xz
kernel-qcow2-linux-bb39b0bdc8c62e97ceedb9a5dadea0f098431d8b.zip
l2tp: make __l2tp_ip*_bind_lookup() parameters 'const'
Add const qualifier wherever possible for __l2tp_ip_bind_lookup() and __l2tp_ip6_bind_lookup(). Signed-off-by: Guillaume Nault <g.nault@alphalink.fr> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/l2tp/l2tp_ip.c')
-rw-r--r--net/l2tp/l2tp_ip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/l2tp/l2tp_ip.c b/net/l2tp/l2tp_ip.c
index 992761e721af..e5686bf898f7 100644
--- a/net/l2tp/l2tp_ip.c
+++ b/net/l2tp/l2tp_ip.c
@@ -53,8 +53,8 @@ static struct sock *__l2tp_ip_bind_lookup(const struct net *net, __be32 laddr,
struct sock *sk;
sk_for_each_bound(sk, &l2tp_ip_bind_table) {
- struct inet_sock *inet = inet_sk(sk);
- struct l2tp_ip_sock *l2tp = l2tp_ip_sk(sk);
+ const struct l2tp_ip_sock *l2tp = l2tp_ip_sk(sk);
+ const struct inet_sock *inet = inet_sk(sk);
if (l2tp == NULL)
continue;