diff options
author | Zhu Yi <yi.zhu@intel.com> | 2006-01-19 09:22:07 +0100 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2006-01-27 23:08:06 +0100 |
commit | 8aa914b747b650fc1735f3a3171753ac15ed93ab (patch) | |
tree | 71bdea3b0d816345c3c1fe8bccaa7122788abc49 | |
parent | [PATCH] ieee80211: Add spectrum management information (diff) | |
download | linux-8aa914b747b650fc1735f3a3171753ac15ed93ab.tar.xz linux-8aa914b747b650fc1735f3a3171753ac15ed93ab.zip |
[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>
-rw-r--r-- | net/ieee80211/ieee80211_crypt_tkip.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/ieee80211/ieee80211_crypt_tkip.c b/net/ieee80211/ieee80211_crypt_tkip.c index e0988320efbf..de56a47edb00 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; |