]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[PATCH] ipw2200: kzalloc conversion and Kconfig dependency fix
authorTakis <panagiotis.issaris@gmail.com>
Thu, 1 Dec 2005 09:41:45 +0000 (01:41 -0800)
committerJeff Garzik <jgarzik@pobox.com>
Thu, 1 Dec 2005 09:51:34 +0000 (04:51 -0500)
- Use kzalloc for IPW2200
- Fix config dependency for IPW2200

Signed-off-by: Panagiotis Issaris <takis@issaris.org>
Cc: James Ketrenos <jketreno@linux.intel.com>
Cc: Yi Zhu <yi.zhu@intel.com>
Cc: Jeff Garzik <jgarzik@pobox.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
drivers/net/wireless/Kconfig
drivers/net/wireless/ipw2200.c

index 00e55165b760506fe7e1f21c3aaf4197e3e3a3b8..d94421c74264571899c77f763fbd0b4f90925bc6 100644 (file)
@@ -192,7 +192,7 @@ config IPW_DEBUG
 
 config IPW2200
        tristate "Intel PRO/Wireless 2200BG and 2915ABG Network Connection"
-       depends on IEEE80211 && PCI
+       depends on NET_RADIO && IEEE80211 && PCI
        select FW_LOADER
        ---help---
           A driver for the Intel PRO/Wireless 2200BG and 2915ABG Network
index 5e7c7e944c9deb8190d271486737041275f85dcf..0e47b23605f989c6c44c4b355bb24425d6f54b1b 100644 (file)
@@ -4944,12 +4944,11 @@ static struct ipw_rx_queue *ipw_rx_queue_alloc(struct ipw_priv *priv)
        struct ipw_rx_queue *rxq;
        int i;
 
-       rxq = (struct ipw_rx_queue *)kmalloc(sizeof(*rxq), GFP_KERNEL);
+       rxq = kzalloc(sizeof(*rxq), GFP_KERNEL);
        if (unlikely(!rxq)) {
                IPW_ERROR("memory allocation failed\n");
                return NULL;
        }
-       memset(rxq, 0, sizeof(*rxq));
        spin_lock_init(&rxq->lock);
        INIT_LIST_HEAD(&rxq->rx_free);
        INIT_LIST_HEAD(&rxq->rx_used);