summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/prism54/oid_mgt.c
diff options
context:
space:
mode:
authorYan Burman <burman.yan@gmail.com>2006-12-02 12:35:20 +0100
committerJohn W. Linville <linville@tuxdriver.com>2006-12-06 01:31:32 +0100
commitb950e83b69a69f3db5ae64ab70b336886855517f (patch)
tree8ff1fa847f3cca3340b5a6188a54983a56fd0d5b /drivers/net/wireless/prism54/oid_mgt.c
parent[PATCH] hostap: replace kmalloc+memset with kzalloc (diff)
downloadlinux-b950e83b69a69f3db5ae64ab70b336886855517f.tar.xz
linux-b950e83b69a69f3db5ae64ab70b336886855517f.zip
[PATCH] prism54: replace kmalloc+memset with kzalloc
Replace kmalloc+memset with kzalloc Signed-off-by: Yan Burman <burman.yan@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/prism54/oid_mgt.c')
-rw-r--r--drivers/net/wireless/prism54/oid_mgt.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/wireless/prism54/oid_mgt.c b/drivers/net/wireless/prism54/oid_mgt.c
index fbc52b6a3024..e6cf9df2c206 100644
--- a/drivers/net/wireless/prism54/oid_mgt.c
+++ b/drivers/net/wireless/prism54/oid_mgt.c
@@ -235,12 +235,10 @@ mgt_init(islpci_private *priv)
{
int i;
- priv->mib = kmalloc(OID_NUM_LAST * sizeof (void *), GFP_KERNEL);
+ priv->mib = kcalloc(OID_NUM_LAST, sizeof (void *), GFP_KERNEL);
if (!priv->mib)
return -ENOMEM;
- memset(priv->mib, 0, OID_NUM_LAST * sizeof (void *));
-
/* Alloc the cache */
for (i = 0; i < OID_NUM_LAST; i++) {
if (isl_oid[i].flags & OID_FLAG_CACHED) {