OSDN Git Service

net/socket: remove duplicated init code
authorMatthieu Baerts <matthieu.baerts@tessares.net>
Thu, 2 Aug 2018 16:14:33 +0000 (18:14 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Aug 2018 21:47:49 +0000 (14:47 -0700)
commit6b431d50d2a8acd1c418b998b856a055252ebc3a
treed6140cd8944c8174baec9f86ae7e00ad61cd3e49
parentd3e2a25bcd0b24f0905554ef0762eb77cbca7ad5
net/socket: remove duplicated init code

This refactoring work has been started by David Howells in cdfbabfb2f0c
(net: Work around lockdep limitation in sockets that use sockets) but
the exact same day in 581319c58600 (net/socket: use per af lockdep
classes for sk queues), Paolo Abeni added new classes.

This reduces the amount of (nearly) duplicated code and eases the
addition of new socket types.

Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/sock.c