tipc: delete needless memset from bearer enabling.
authorAllan Stephens <allan.stephens@windriver.com>
Mon, 18 Oct 2010 11:43:56 +0000 (11:43 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Oct 2010 11:25:51 +0000 (04:25 -0700)
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>
net/tipc/bearer.c

index fd9c06c6828173f42edcdaf3649fb42772c4faef..9927d1d56c4f1f8e2a015752be33b781c6ea6480 100644 (file)
@@ -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) {