From: Allan Stephens Date: Tue, 11 May 2010 14:30:06 +0000 (+0000) Subject: tipc: Eliminate unnecessary initialization in native API send routines X-Git-Tag: v2.6.35-rc1~473^2~160 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=9ccc2eb4e12a39bd8430952b76c56c6267018500;p=~emulex%2Finfiniband.git 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 Signed-off-by: Paul Gortmaker Signed-off-by: David S. Miller --- diff --git a/net/tipc/port.c b/net/tipc/port.c index c703ecbe09d..7641db667e0 100644 --- a/net/tipc/port.c +++ b/net/tipc/port.c @@ -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); @@ -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);