Эх сурвалжийг харах

tipc: delete needless memset from bearer enabling.

Eliminates zeroing out of the new bearer structure at the start of
activation, since it is already in that state.

Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Allan Stephens 14 жил өмнө
parent
commit
a0e00369f1

+ 0 - 2
net/tipc/bearer.c

@@ -556,8 +556,6 @@ restart:
 	}
 	}
 
 
 	b_ptr = &tipc_bearers[bearer_id];
 	b_ptr = &tipc_bearers[bearer_id];
-	memset(b_ptr, 0, sizeof(struct bearer));
-
 	strcpy(b_ptr->publ.name, name);
 	strcpy(b_ptr->publ.name, name);
 	res = m_ptr->enable_bearer(&b_ptr->publ);
 	res = m_ptr->enable_bearer(&b_ptr->publ);
 	if (res) {
 	if (res) {