projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
decf67a
)
[PATCH] sk98lin: use kzalloc
author
Stephen Hemminger
<shemminger@osdl.org>
Sat, 7 Jan 2006 00:57:42 +0000
(16:57 -0800)
committer
Jeff Garzik
<jgarzik@pobox.com>
Mon, 9 Jan 2006 15:32:40 +0000
(10:32 -0500)
Trivial use of kzalloc.
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
drivers/net/sk98lin/skge.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/sk98lin/skge.c
b/drivers/net/sk98lin/skge.c
index 87bfe4c24a7734558d0d16aae42af583804e478a..9f89c23191d09153eaa7ff58473aee07e8f70612 100644
(file)
--- a/
drivers/net/sk98lin/skge.c
+++ b/
drivers/net/sk98lin/skge.c
@@
-4807,14
+4807,13
@@
static int __devinit skge_probe_one(struct pci_dev *pdev,
}
pNet = netdev_priv(dev);
- pNet->pAC = k
m
alloc(sizeof(SK_AC), GFP_KERNEL);
+ pNet->pAC = k
z
alloc(sizeof(SK_AC), GFP_KERNEL);
if (!pNet->pAC) {
printk(KERN_ERR "Unable to allocate adapter "
"structure!\n");
goto out_free_netdev;
}
- memset(pNet->pAC, 0, sizeof(SK_AC));
pAC = pNet->pAC;
pAC->PciDev = pdev;