l2tp: define parameters of l2tp_session_get*() as "const"
authorGuillaume Nault <g.nault@alphalink.fr>
Wed, 12 Apr 2017 08:05:29 +0000 (10:05 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Apr 2017 14:44:02 +0000 (10:44 -0400)
commit9aaef50c44f132e040dcd7686c8e78a3390037c5
tree062f935e6b69d0a457ccd1f105593e553220a55b
parent2a446c51901a7d0849ffe75aa41fdeb71a5b37d1
l2tp: define parameters of l2tp_session_get*() as "const"

Make l2tp_pernet()'s parameter constant, so that l2tp_session_get*() can
declare their "net" variable as "const".
Also constify "ifname" in l2tp_session_get_by_ifname().

Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/l2tp/l2tp_core.c
net/l2tp/l2tp_core.h