Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2e86541e authored by Roland Dreier's avatar Roland Dreier
Browse files

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: default avatarRoland Dreier <rolandd@cisco.com>
parent de922487
Loading
Loading
Loading
Loading
+0 −4
Original line number Original line Diff line number Diff line
@@ -138,15 +138,11 @@ static struct ipoib_mcast *ipoib_mcast_alloc(struct net_device *dev,
	mcast->dev = dev;
	mcast->dev = dev;
	mcast->created = jiffies;
	mcast->created = jiffies;
	mcast->backoff = 1;
	mcast->backoff = 1;
	mcast->logcount = 0;


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


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

	return mcast;
	return mcast;
}
}