aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc
diff options
context:
space:
mode:
authorAllan Stephens <allan.stephens@windriver.com>2010-05-11 10:30:06 -0400
committerDavid S. Miller <davem@davemloft.net>2010-05-13 02:02:22 -0400
commit9ccc2eb4e12a39bd8430952b76c56c6267018500 (patch)
treea3b19300b01b9106d86a352e03ae08a111bd8403 /net/tipc
parent289464e4fc2ebdef20be5f6b58414136f75107e2 (diff)
tipc: Eliminate unnecessary initialization in native API send routines
Eliminate a couple of instances where TIPC's native API send routines were doing pointless initialization of local variables. Signed-off-by: Allan Stephens <allan.stephens@windriver.com> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc')
-rw-r--r--net/tipc/port.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/tipc/port.c b/net/tipc/port.c
index c703ecbe09d7..7641db667e0b 100644
--- a/net/tipc/port.c
+++ b/net/tipc/port.c
@@ -1452,7 +1452,7 @@ int tipc_forward2name(u32 ref,
1452 struct port *p_ptr; 1452 struct port *p_ptr;
1453 struct tipc_msg *msg; 1453 struct tipc_msg *msg;
1454 u32 destnode = domain; 1454 u32 destnode = domain;
1455 u32 destport = 0; 1455 u32 destport;
1456 int res; 1456 int res;
1457 1457
1458 p_ptr = tipc_port_deref(ref); 1458 p_ptr = tipc_port_deref(ref);
@@ -1524,7 +1524,7 @@ int tipc_forward_buf2name(u32 ref,
1524 struct port *p_ptr; 1524 struct port *p_ptr;
1525 struct tipc_msg *msg; 1525 struct tipc_msg *msg;
1526 u32 destnode = domain; 1526 u32 destnode = domain;
1527 u32 destport = 0; 1527 u32 destport;
1528 int res; 1528 int res;
1529 1529
1530 p_ptr = (struct port *)tipc_ref_deref(ref); 1530 p_ptr = (struct port *)tipc_ref_deref(ref);