]> asedeno.scripts.mit.edu Git - linux.git/commit
l2tp: zero out stats in pppol2tp_copy_stats()
authorGuillaume Nault <g.nault@alphalink.fr>
Fri, 10 Aug 2018 11:22:02 +0000 (13:22 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 11 Aug 2018 19:13:49 +0000 (12:13 -0700)
commit7390ed8a405013d0a7e1f4dc8ac495e0ac04996f
treec3682c22665ea9033c29abc543eb6ca3030c8a7b
parentb0e29063dcb3bf14f515f95e748b60e4bab45e7c
l2tp: zero out stats in pppol2tp_copy_stats()

Integrate memset(0) in pppol2tp_copy_stats() to avoid calling it
manually every time.

While there, constify 'stats'.

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