]> err.no Git - linux-2.6/commitdiff
[PATCH] ieee80211: kmalloc+memset -> kzalloc cleanups
authorZhu Yi <yi.zhu@intel.com>
Thu, 19 Jan 2006 08:22:07 +0000 (16:22 +0800)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 27 Jan 2006 22:08:06 +0000 (17:08 -0500)
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>
net/ieee80211/ieee80211_crypt_tkip.c

index e0988320efbfef0ad976437c83c7dac6357e9f7a..de56a47edb0058ff4b70d0c50b5a7ad43fe1f820 100644 (file)
@@ -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;