summaryrefslogtreecommitdiff
path: root/net/caif
diff options
context:
space:
mode:
authorGuillaume Nault <g.nault@alphalink.fr>2017-04-11 14:12:13 +0300
committerDavid S. Miller <davem@davemloft.net>2017-04-11 20:48:09 +0300
commitaf87ae465abdc070de0dc35d6c6a9e7a8cd82987 (patch)
treef2ad08326ed460dda75cd79019d781a0f9dd1441 /net/caif
parent93411c27d6504933d2d81399a32bb52e24b06839 (diff)
downloadlinux-af87ae465abdc070de0dc35d6c6a9e7a8cd82987.tar.xz
l2tp: remove useless duplicate session detection in l2tp_netlink
There's no point in checking for duplicate sessions at the beginning of l2tp_nl_cmd_session_create(); the ->session_create() callbacks already return -EEXIST when the session already exists. Furthermore, even if l2tp_session_find() returns NULL, a new session might be created right after the test. So relying on ->session_create() to avoid duplicate session is the only sane behaviour. Signed-off-by: Guillaume Nault <g.nault@alphalink.fr> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/caif')
0 files changed, 0 insertions, 0 deletions