Skip to content

Commit

Permalink
tipc: Eliminate useless initialization when creating subscriber
Browse files Browse the repository at this point in the history
Removes initialization of a local variable that is always assigned
a different value before it is referenced.

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 Dec 2, 2010
1 parent 38f232e commit 52fe7b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/tipc/subscr.c
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ static void subscr_named_msg_event(void *usr_handle,
int tipc_subscr_start(void)
{
struct tipc_name_seq seq = {TIPC_TOP_SRV, TIPC_TOP_SRV, TIPC_TOP_SRV};
int res = -1;
int res;

memset(&topsrv, 0, sizeof (topsrv));
spin_lock_init(&topsrv.lock);
Expand Down

0 comments on commit 52fe7b7

Please sign in to comment.