Skip to content

Commit

Permalink
tipc: delete needless memset from bearer enabling.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Allan Stephens authored and David S. Miller committed Oct 21, 2010
1 parent 13eea19 commit a0e0036
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions net/tipc/bearer.c
Original file line number Diff line number Diff line change
Expand Up @@ -556,8 +556,6 @@ int tipc_enable_bearer(const char *name, u32 bcast_scope, u32 priority)
}

b_ptr = &tipc_bearers[bearer_id];
memset(b_ptr, 0, sizeof(struct bearer));

strcpy(b_ptr->publ.name, name);
res = m_ptr->enable_bearer(&b_ptr->publ);
if (res) {
Expand Down

0 comments on commit a0e0036

Please sign in to comment.