summaryrefslogtreecommitdiffstats
path: root/net/ieee80211
diff options
context:
space:
mode:
authorZhu Yi <yi.zhu@intel.com>2006-01-19 16:22:07 +0800
committerJohn W. Linville <linville@tuxdriver.com>2006-01-27 17:08:06 -0500
commit8aa914b747b650fc1735f3a3171753ac15ed93ab (patch)
tree71bdea3b0d816345c3c1fe8bccaa7122788abc49 /net/ieee80211
parent7bd64366044565d6861783613db191c8aaec691e (diff)
downloadop-kernel-dev-8aa914b747b650fc1735f3a3171753ac15ed93ab.zip
op-kernel-dev-8aa914b747b650fc1735f3a3171753ac15ed93ab.tar.gz
[PATCH] ieee80211: kmalloc+memset -> kzalloc cleanups
kmalloc+memset -> kzalloc cleanups in ieee80211_crypt_tkip Signed-off-by: Zhu Yi <yi.zhu@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/ieee80211')
-rw-r--r--net/ieee80211/ieee80211_crypt_tkip.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/ieee80211/ieee80211_crypt_tkip.c b/net/ieee80211/ieee80211_crypt_tkip.c
index e098832..de56a47 100644
--- a/net/ieee80211/ieee80211_crypt_tkip.c
+++ b/net/ieee80211/ieee80211_crypt_tkip.c
@@ -80,10 +80,9 @@ static void *ieee80211_tkip_init(int key_idx)
{
struct ieee80211_tkip_data *priv;
- priv = kmalloc(sizeof(*priv), GFP_ATOMIC);
+ priv = kzalloc(sizeof(*priv), GFP_ATOMIC);
if (priv == NULL)
goto fail;
- memset(priv, 0, sizeof(*priv));
priv->key_idx = key_idx;
OpenPOWER on IntegriCloud