Skip to content

Commit

Permalink
IPoIB: don't zero members after we allocate with kzalloc
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Roland Dreier committed Nov 29, 2005
1 parent de92248 commit 2e86541
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/infiniband/ulp/ipoib/ipoib_multicast.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,15 +138,11 @@ static struct ipoib_mcast *ipoib_mcast_alloc(struct net_device *dev,
mcast->dev = dev;
mcast->created = jiffies;
mcast->backoff = 1;
mcast->logcount = 0;

INIT_LIST_HEAD(&mcast->list);
INIT_LIST_HEAD(&mcast->neigh_list);
skb_queue_head_init(&mcast->pkt_queue);

mcast->ah = NULL;
mcast->query = NULL;

return mcast;
}

Expand Down

0 comments on commit 2e86541

Please sign in to comment.