projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de92248
)
IPoIB: don't zero members after we allocate with kzalloc
author
Roland Dreier
<rolandd@cisco.com>
Tue, 29 Nov 2005 18:25:23 +0000
(10:25 -0800)
committer
Roland Dreier
<rolandd@cisco.com>
Tue, 29 Nov 2005 18:25:23 +0000
(10:25 -0800)
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>
drivers/infiniband/ulp/ipoib/ipoib_multicast.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/ulp/ipoib/ipoib_multicast.c
b/drivers/infiniband/ulp/ipoib/ipoib_multicast.c
index 10404e09d1ef9be56053a9512c54d45dfc8caa22..ef3ee035bbc8e03f7930df570620368882be5fd3 100644
(file)
--- 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,
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;
}