tipc: Eliminate unnecessary initialization in native API send routines
authorAllan Stephens <allan.stephens@windriver.com>
Tue, 11 May 2010 14:30:06 +0000 (14:30 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 May 2010 06:02:22 +0000 (23:02 -0700)
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>
net/tipc/port.c

index c703ecbe09d7d5a75f88af04cc4e2383430af8c3..7641db667e0bffacec2a13731932da4f552a6a87 100644 (file)
@@ -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);