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)
commit6e415dde91335054c6bcaecfc2961f7a74002f6c
treed6140cd8944c8174baec9f86ae7e00ad61cd3e49
parentd6c9fe114ca42191f4d9925d41f01d569001709f
net/socket: remove duplicated init code

This refactoring work has been started by David Howells in 6c83d1ccf680
(net: Work around lockdep limitation in sockets that use sockets) but
the exact same day in c5a3756c21eb (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