Commit 9ccc2eb4e12a39bd8430952b76c56c6267018500
Committed by
David S. Miller
1 parent
289464e4fc
Exists in
master
and in
39 other branches
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>
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
net/tipc/port.c
... | ... | @@ -1452,7 +1452,7 @@ |
1452 | 1452 | struct port *p_ptr; |
1453 | 1453 | struct tipc_msg *msg; |
1454 | 1454 | u32 destnode = domain; |
1455 | - u32 destport = 0; | |
1455 | + u32 destport; | |
1456 | 1456 | int res; |
1457 | 1457 | |
1458 | 1458 | p_ptr = tipc_port_deref(ref); |
... | ... | @@ -1524,7 +1524,7 @@ |
1524 | 1524 | struct port *p_ptr; |
1525 | 1525 | struct tipc_msg *msg; |
1526 | 1526 | u32 destnode = domain; |
1527 | - u32 destport = 0; | |
1527 | + u32 destport; | |
1528 | 1528 | int res; |
1529 | 1529 | |
1530 | 1530 | p_ptr = (struct port *)tipc_ref_deref(ref); |