Commit 69218fc426569739d2bb68e15ac4905948409642
Committed by
Paul Gortmaker
1 parent
f23d9bf2b7
Exists in
master
and in
7 other branches
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>
Showing 1 changed file with 1 additions and 3 deletions Side-by-side Diff
net/tipc/subscr.c
... | ... | @@ -472,8 +472,6 @@ |
472 | 472 | struct tipc_portid const *orig, |
473 | 473 | struct tipc_name_seq const *dest) |
474 | 474 | { |
475 | - static struct iovec msg_sect = {NULL, 0}; | |
476 | - | |
477 | 475 | struct subscriber *subscriber; |
478 | 476 | u32 server_port_ref; |
479 | 477 | |
... | ... | @@ -523,7 +521,7 @@ |
523 | 521 | |
524 | 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 | 526 | /* Handle optional subscription request */ |
529 | 527 |