summaryrefslogtreecommitdiff
path: root/drivers/net/chelsio/pm3393.c
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@osdl.org>2006-12-02 03:36:14 +0300
committerJeff Garzik <jeff@garzik.org>2006-12-02 08:24:49 +0300
commit1270266cf94c0de5bd1121f15aff9af8556dee84 (patch)
tree922611128fd47dd08c7f1b83666ef2207fd09d76 /drivers/net/chelsio/pm3393.c
parent11e5a202ca9e93ecb5ff314a6a345e0e4db77d97 (diff)
downloadlinux-1270266cf94c0de5bd1121f15aff9af8556dee84.tar.xz
[PATCH] chelsio: use kzalloc
Use kzalloc in several places. Signed-off-by: Stephen Hemminger <shemminger@osdl.org> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/chelsio/pm3393.c')
-rw-r--r--drivers/net/chelsio/pm3393.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/chelsio/pm3393.c b/drivers/net/chelsio/pm3393.c
index b442b585b4b1..50983f9ce4bc 100644
--- a/drivers/net/chelsio/pm3393.c
+++ b/drivers/net/chelsio/pm3393.c
@@ -631,10 +631,9 @@ static struct cmac *pm3393_mac_create(adapter_t *adapter, int index)
{
struct cmac *cmac;
- cmac = kmalloc(sizeof(*cmac) + sizeof(cmac_instance), GFP_KERNEL);
+ cmac = kzalloc(sizeof(*cmac) + sizeof(cmac_instance), GFP_KERNEL);
if (!cmac)
return NULL;
- memset(cmac, 0, sizeof(*cmac));
cmac->ops = &pm3393_ops;
cmac->instance = (cmac_instance *) (cmac + 1);