Jon Paul Maloy 5c311421a2 tipc: eliminate redundant lookups in registry
As an artefact from the native interface, the message sending functions
in the port takes a port ref as first parameter, and then looks up in
the registry to find the corresponding port pointer. This despite the
fact that the only currently existing caller, tipc_sock, already knows
this pointer.

We change the signature of these functions to take a struct tipc_port*
argument, and remove the redundant lookups.

We also remove an unmotivated extra lookup in the function
socket.c:auto_connect(), and, as the lookup functions tipc_port_deref()
and ref_deref() now become unused, we remove these two functions.

Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Reviewed-by: Ying Xue <ying.xue@windriver.com>
Reviewed-by: Erik Hugne <erik.hugne@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-03-12 15:53:49 -04:00
..
2014-02-13 18:33:38 -05:00
2014-02-16 23:45:00 -05:00
2014-01-21 18:13:05 -08:00
2014-03-10 16:15:54 -04:00
2014-02-12 19:26:32 -05:00
2014-03-10 15:32:24 -04:00
2013-09-23 16:52:45 -04:00
2013-10-19 19:36:19 -04:00
2014-03-10 13:56:26 -04:00
2014-02-19 12:13:02 -08:00
2013-11-21 13:09:42 -05:00
2014-02-13 18:15:10 -05:00