]> git.baikalelectronics.ru Git - kernel.git/commit
net: merge cases where sock_efree and sock_edemux are the same function
authorAlexander Duyck <alexander.h.duyck@intel.com>
Thu, 4 Sep 2014 17:32:11 +0000 (13:32 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sat, 6 Sep 2014 00:43:45 +0000 (17:43 -0700)
commit42a0e7d225bdf4530d76efead94391aed2f912fe
tree3f1064b6b501005f741bacc74e9ed370c2ffb996
parent2c9248e5e2cc5fb11635e5d4c2a622f929aaea63
net: merge cases where sock_efree and sock_edemux are the same function

Since sock_efree and sock_demux are essentially the same code for non-TCP
sockets and the case where CONFIG_INET is not defined we can combine the
code or replace the call to sock_edemux in several spots.  As a result we
can avoid a bit of unnecessary code or code duplication.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sock.h
net/core/sock.c
net/ipv4/udp.c