diff options
author | Roland Dreier <rolandd@cisco.com> | 2005-11-29 13:25:23 -0500 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2005-11-29 13:25:23 -0500 |
commit | 2e86541ec878de9ec5771600a77f451a80bebfc4 (patch) | |
tree | e58f418dd8e64675b1dbaa6db92d7c1e606d1506 /drivers/infiniband | |
parent | de922487890936470660e89f9095aee980637989 (diff) |
IPoIB: don't zero members after we allocate with kzalloc
ipoib_mcast_alloc() uses kzalloc(), so there's no need to zero out
members of the mcast struct after it's allocated.
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r-- | drivers/infiniband/ulp/ipoib/ipoib_multicast.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/infiniband/ulp/ipoib/ipoib_multicast.c b/drivers/infiniband/ulp/ipoib/ipoib_multicast.c index 10404e09d1ef..ef3ee035bbc8 100644 --- a/drivers/infiniband/ulp/ipoib/ipoib_multicast.c +++ b/drivers/infiniband/ulp/ipoib/ipoib_multicast.c | |||
@@ -138,15 +138,11 @@ static struct ipoib_mcast *ipoib_mcast_alloc(struct net_device *dev, | |||
138 | mcast->dev = dev; | 138 | mcast->dev = dev; |
139 | mcast->created = jiffies; | 139 | mcast->created = jiffies; |
140 | mcast->backoff = 1; | 140 | mcast->backoff = 1; |
141 | mcast->logcount = 0; | ||
142 | 141 | ||
143 | INIT_LIST_HEAD(&mcast->list); | 142 | INIT_LIST_HEAD(&mcast->list); |
144 | INIT_LIST_HEAD(&mcast->neigh_list); | 143 | INIT_LIST_HEAD(&mcast->neigh_list); |
145 | skb_queue_head_init(&mcast->pkt_queue); | 144 | skb_queue_head_init(&mcast->pkt_queue); |
146 | 145 | ||
147 | mcast->ah = NULL; | ||
148 | mcast->query = NULL; | ||
149 | |||
150 | return mcast; | 146 | return mcast; |
151 | } | 147 | } |
152 | 148 | ||