* [PATCH 1/8] 3c507: Remove unnecessary memset of netdev private data
@ 2010-05-06 15:39 Tobias Klauser
2010-05-07 5:11 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Tobias Klauser @ 2010-05-06 15:39 UTC (permalink / raw)
To: davem, netdev; +Cc: kernel-janitors, Tobias Klauser
The memory for the private data is allocated using kzalloc in
alloc_etherdev (or alloc_netdev_mq respectively) so there is no need to
set it to 0 again.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
---
drivers/net/3c507.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/drivers/net/3c507.c b/drivers/net/3c507.c
index b32b7a1..9e95afa 100644
--- a/drivers/net/3c507.c
+++ b/drivers/net/3c507.c
@@ -449,7 +449,6 @@ static int __init el16_probe1(struct net_device *dev, int ioaddr)
pr_debug("%s", version);
lp = netdev_priv(dev);
- memset(lp, 0, sizeof(*lp));
spin_lock_init(&lp->lock);
lp->base = ioremap(dev->mem_start, RX_BUF_END);
if (!lp->base) {
--
1.6.3.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 1/8] 3c507: Remove unnecessary memset of netdev private data
2010-05-06 15:39 [PATCH 1/8] 3c507: Remove unnecessary memset of netdev private data Tobias Klauser
@ 2010-05-07 5:11 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2010-05-07 5:11 UTC (permalink / raw)
To: tklauser; +Cc: netdev, kernel-janitors
From: Tobias Klauser <tklauser@distanz.ch>
Date: Thu, 6 May 2010 17:39:11 +0200
> The memory for the private data is allocated using kzalloc in
> alloc_etherdev (or alloc_netdev_mq respectively) so there is no need to
> set it to 0 again.
>
> Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-05-07 5:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-06 15:39 [PATCH 1/8] 3c507: Remove unnecessary memset of netdev private data Tobias Klauser
2010-05-07 5:11 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).