summaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-devsets.c
diff options
context:
space:
mode:
authorGuillaume Nault <g.nault@alphalink.fr>2017-11-10 22:06:37 +0100
committerDavid S. Miller <davem@davemloft.net>2017-11-11 14:08:23 +0100
commitda9ca825ef79fd1c64297b5267d594b11a9e5b16 (patch)
treefd18769ef8fe5132e2270ce7b54cc207fc7f0496 /drivers/ide/ide-devsets.c
parentl2tp: avoid using ->tunnel_sock for getting session's parent tunnel (diff)
downloadlinux-da9ca825ef79fd1c64297b5267d594b11a9e5b16.tar.xz
linux-da9ca825ef79fd1c64297b5267d594b11a9e5b16.zip
l2tp: remove the .tunnel_sock field from struct pppol2tp_session
The last user of .tunnel_sock is pppol2tp_connect() which defensively uses it to verify internal data consistency. This check isn't necessary: l2tp_session_get() guarantees that the returned session belongs to the tunnel passed as parameter. And .tunnel_sock is never updated, so checking that it still points to the parent tunnel socket is useless; that test can never fail. Signed-off-by: Guillaume Nault <g.nault@alphalink.fr> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/ide/ide-devsets.c')
0 files changed, 0 insertions, 0 deletions