summaryrefslogtreecommitdiff
path: root/net/tipc
diff options
context:
space:
mode:
authorAllan Stephens <Allan.Stephens@windriver.com>2011-01-21 09:45:33 -0500
committerPaul Gortmaker <paul.gortmaker@windriver.com>2011-02-23 18:05:17 -0500
commit69218fc426569739d2bb68e15ac4905948409642 (patch)
treeec6ad0a4ace309739503c684c9f6168d6b82484d /net/tipc
parentf23d9bf2b7ba22fe49b65d344b3651049cecc51d (diff)
downloadlinux-3.10-69218fc426569739d2bb68e15ac4905948409642.tar.gz
linux-3.10-69218fc426569739d2bb68e15ac4905948409642.tar.bz2
linux-3.10-69218fc426569739d2bb68e15ac4905948409642.zip
tipc: Minor optimization to topology service connection establishment
Eliminates a local iovec structure containing no data, which was previously used during the establishment of a topology service connection, since the same effect can be achieved by passing in a NULL pointer and an iovec length of zero. Signed-off-by: Allan Stephens <Allan.Stephens@windriver.com> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Diffstat (limited to 'net/tipc')
-rw-r--r--net/tipc/subscr.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/net/tipc/subscr.c b/net/tipc/subscr.c
index 13873724273..aae9eae1340 100644
--- a/net/tipc/subscr.c
+++ b/net/tipc/subscr.c
@@ -472,8 +472,6 @@ static void subscr_named_msg_event(void *usr_handle,
struct tipc_portid const *orig,
struct tipc_name_seq const *dest)
{
- static struct iovec msg_sect = {NULL, 0};
-
struct subscriber *subscriber;
u32 server_port_ref;
@@ -523,7 +521,7 @@ static void subscr_named_msg_event(void *usr_handle,
/* Send an ACK- to complete connection handshaking */
- tipc_send(server_port_ref, 1, &msg_sect);
+ tipc_send(server_port_ref, 0, NULL);
/* Handle optional subscription request */