mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-09 14:50:19 +00:00
tipc: Eliminate useless initialization when creating subscriber
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>
This commit is contained in:
parent
38f232eae2
commit
52fe7b725e
@ -542,7 +542,7 @@ static void subscr_named_msg_event(void *usr_handle,
|
|||||||
int tipc_subscr_start(void)
|
int tipc_subscr_start(void)
|
||||||
{
|
{
|
||||||
struct tipc_name_seq seq = {TIPC_TOP_SRV, TIPC_TOP_SRV, TIPC_TOP_SRV};
|
struct tipc_name_seq seq = {TIPC_TOP_SRV, TIPC_TOP_SRV, TIPC_TOP_SRV};
|
||||||
int res = -1;
|
int res;
|
||||||
|
|
||||||
memset(&topsrv, 0, sizeof (topsrv));
|
memset(&topsrv, 0, sizeof (topsrv));
|
||||||
spin_lock_init(&topsrv.lock);
|
spin_lock_init(&topsrv.lock);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user