diff options
author | Allan Stephens <allan.stephens@windriver.com> | 2010-10-18 11:43:56 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-10-21 04:25:51 -0700 |
commit | a0e00369f1e1ff9142a20efe4785890e52b2e525 (patch) | |
tree | 50c9cb54999dec201bff979037986d59ba4bf7ea /net | |
parent | 13eea19213c1f4b711124ddc08c4bb9344442b64 (diff) | |
download | linux-3.10-a0e00369f1e1ff9142a20efe4785890e52b2e525.tar.gz linux-3.10-a0e00369f1e1ff9142a20efe4785890e52b2e525.tar.bz2 linux-3.10-a0e00369f1e1ff9142a20efe4785890e52b2e525.zip |
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>
Diffstat (limited to 'net')
-rw-r--r-- | net/tipc/bearer.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/net/tipc/bearer.c b/net/tipc/bearer.c index fd9c06c6828..9927d1d56c4 100644 --- a/net/tipc/bearer.c +++ b/net/tipc/bearer.c @@ -556,8 +556,6 @@ restart: } 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) { |