Skip to content

Commit

Permalink
tipc: Eliminate unnecessary initialization in native API send routines
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Allan Stephens authored and David S. Miller committed May 13, 2010
1 parent 289464e commit 9ccc2eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/tipc/port.c
Original file line number Diff line number Diff line change
Expand Up @@ -1452,7 +1452,7 @@ int tipc_forward2name(u32 ref,
struct port *p_ptr;
struct tipc_msg *msg;
u32 destnode = domain;
u32 destport = 0;
u32 destport;
int res;

p_ptr = tipc_port_deref(ref);
Expand Down Expand Up @@ -1524,7 +1524,7 @@ int tipc_forward_buf2name(u32 ref,
struct port *p_ptr;
struct tipc_msg *msg;
u32 destnode = domain;
u32 destport = 0;
u32 destport;
int res;

p_ptr = (struct port *)tipc_ref_deref(ref);
Expand Down

0 comments on commit 9ccc2eb

Please sign in to comment.