OSDN Git Service

l2tp: return void from l2tp_session_delete
authorTom Parkin <tparkin@katalix.com>
Tue, 28 Jul 2020 17:20:30 +0000 (18:20 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Jul 2020 23:45:31 +0000 (16:45 -0700)
commit628703f59dcc832a0bd04b4fa41d856e5df98112
treea2b3fc3c205ecf055a80ef21e829cb1e7d5304fd
parent52016e259bab98613453e29d42f2ffe456feee11
l2tp: return void from l2tp_session_delete

l2tp_session_delete is used to schedule a session instance for deletion.
The function itself always returns zero, and none of its direct callers
check its return value, so have the function return void.

This change de-facto changes the l2tp netlink session_delete callback
prototype since all pseudowires currently use l2tp_session_delete for
their implementation of that operation.

Signed-off-by: Tom Parkin <tparkin@katalix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/l2tp/l2tp_core.c
net/l2tp/l2tp_core.h
net/l2tp/l2tp_netlink.c