diff options
author | Mariusz Kozlowski <m.kozlowski@tuxland.pl> | 2007-07-31 17:34:50 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:49:36 -0400 |
commit | 8951554dba0c7962ae72faece66e8f5085a777d6 (patch) | |
tree | 98c07ca5e6683614a38583f8459a0aa45a0cfafe /drivers/net/wireless/prism54 | |
parent | 3623060abbf1cdd7f292645bea31d024e21792ef (diff) |
[PATCH] drivers/net/wireless/prism54/oid_mgt.c: kmalloc + memset conversion to kzalloc
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Acked-by: Luis R. Rodriguez <mcgrof@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/prism54')
-rw-r--r-- | drivers/net/wireless/prism54/oid_mgt.c | 4 |
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 42780320cd5c..57a4ac34bed6 100644 --- a/drivers/net/wireless/prism54/oid_mgt.c +++ b/drivers/net/wireless/prism54/oid_mgt.c | |||
@@ -244,13 +244,11 @@ mgt_init(islpci_private *priv) | |||
244 | /* Alloc the cache */ | 244 | /* Alloc the cache */ |
245 | for (i = 0; i < OID_NUM_LAST; i++) { | 245 | for (i = 0; i < OID_NUM_LAST; i++) { |
246 | if (isl_oid[i].flags & OID_FLAG_CACHED) { | 246 | if (isl_oid[i].flags & OID_FLAG_CACHED) { |
247 | priv->mib[i] = kmalloc(isl_oid[i].size * | 247 | priv->mib[i] = kzalloc(isl_oid[i].size * |
248 | (isl_oid[i].range + 1), | 248 | (isl_oid[i].range + 1), |
249 | GFP_KERNEL); | 249 | GFP_KERNEL); |
250 | if (!priv->mib[i]) | 250 | if (!priv->mib[i]) |
251 | return -ENOMEM; | 251 | return -ENOMEM; |
252 | memset(priv->mib[i], 0, | ||
253 | isl_oid[i].size * (isl_oid[i].range + 1)); | ||
254 | } else | 252 | } else |
255 | priv->mib[i] = NULL; | 253 | priv->mib[i] = NULL; |
256 | } | 254 | } |