diff options
author | Allan Stephens <Allan.Stephens@windriver.com> | 2011-01-21 09:45:33 -0500 |
---|---|---|
committer | Paul Gortmaker <paul.gortmaker@windriver.com> | 2011-02-23 18:05:17 -0500 |
commit | 69218fc426569739d2bb68e15ac4905948409642 (patch) | |
tree | ec6ad0a4ace309739503c684c9f6168d6b82484d /net/tipc/subscr.c | |
parent | f23d9bf2b7ba22fe49b65d344b3651049cecc51d (diff) |
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/subscr.c')
-rw-r--r-- | net/tipc/subscr.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/tipc/subscr.c b/net/tipc/subscr.c index 138737242739..aae9eae13404 100644 --- a/net/tipc/subscr.c +++ b/net/tipc/subscr.c | |||
@@ -472,8 +472,6 @@ static void subscr_named_msg_event(void *usr_handle, | |||
472 | struct tipc_portid const *orig, | 472 | struct tipc_portid const *orig, |
473 | struct tipc_name_seq const *dest) | 473 | struct tipc_name_seq const *dest) |
474 | { | 474 | { |
475 | static struct iovec msg_sect = {NULL, 0}; | ||
476 | |||
477 | struct subscriber *subscriber; | 475 | struct subscriber *subscriber; |
478 | u32 server_port_ref; | 476 | u32 server_port_ref; |
479 | 477 | ||
@@ -523,7 +521,7 @@ static void subscr_named_msg_event(void *usr_handle, | |||
523 | 521 | ||
524 | /* Send an ACK- to complete connection handshaking */ | 522 | /* Send an ACK- to complete connection handshaking */ |
525 | 523 | ||
526 | tipc_send(server_port_ref, 1, &msg_sect); | 524 | tipc_send(server_port_ref, 0, NULL); |
527 | 525 | ||
528 | /* Handle optional subscription request */ | 526 | /* Handle optional subscription request */ |
529 | 527 | ||