diff options
author | Zhu Yi <yi.zhu@intel.com> | 2006-01-19 16:22:07 +0800 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2006-01-27 17:08:06 -0500 |
commit | 8aa914b747b650fc1735f3a3171753ac15ed93ab (patch) | |
tree | 71bdea3b0d816345c3c1fe8bccaa7122788abc49 /net/ieee80211 | |
parent | 7bd64366044565d6861783613db191c8aaec691e (diff) | |
download | linux-stable-8aa914b747b650fc1735f3a3171753ac15ed93ab.tar.gz linux-stable-8aa914b747b650fc1735f3a3171753ac15ed93ab.tar.bz2 linux-stable-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>
Diffstat (limited to 'net/ieee80211')
-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; |