diff options
author | Winkler, Tomas <tomas.winkler@intel.com> | 2009-01-19 18:30:28 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-01-29 16:00:57 -0500 |
commit | 805cee5b81f1e493820601fe7990aef935c2c621 (patch) | |
tree | 1714259828c667653c78f90a5eda85120ab34ebf /drivers/net/wireless/iwlwifi/iwl3945-base.c | |
parent | 518099a870ef3f5f97d96aa0c284ce1b403436fa (diff) |
iwlwifi: kill scan39
scan and scan39 can be represented by void * in iwl_priv
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Acked-by: Samuel Ortiz <samuel.ortiz@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl3945-base.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl3945-base.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c index c8a1bdeaa435..9df3eef10c22 100644 --- a/drivers/net/wireless/iwlwifi/iwl3945-base.c +++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c | |||
@@ -5270,15 +5270,15 @@ static void iwl3945_bg_request_scan(struct work_struct *data) | |||
5270 | goto done; | 5270 | goto done; |
5271 | } | 5271 | } |
5272 | 5272 | ||
5273 | if (!priv->scan39) { | 5273 | if (!priv->scan) { |
5274 | priv->scan39 = kmalloc(sizeof(struct iwl3945_scan_cmd) + | 5274 | priv->scan = kmalloc(sizeof(struct iwl3945_scan_cmd) + |
5275 | IWL_MAX_SCAN_SIZE, GFP_KERNEL); | 5275 | IWL_MAX_SCAN_SIZE, GFP_KERNEL); |
5276 | if (!priv->scan39) { | 5276 | if (!priv->scan) { |
5277 | rc = -ENOMEM; | 5277 | rc = -ENOMEM; |
5278 | goto done; | 5278 | goto done; |
5279 | } | 5279 | } |
5280 | } | 5280 | } |
5281 | scan = priv->scan39; | 5281 | scan = priv->scan; |
5282 | memset(scan, 0, sizeof(struct iwl3945_scan_cmd) + IWL_MAX_SCAN_SIZE); | 5282 | memset(scan, 0, sizeof(struct iwl3945_scan_cmd) + IWL_MAX_SCAN_SIZE); |
5283 | 5283 | ||
5284 | scan->quiet_plcp_th = IWL_PLCP_QUIET_THRESH; | 5284 | scan->quiet_plcp_th = IWL_PLCP_QUIET_THRESH; |
@@ -7298,7 +7298,7 @@ static void __devexit iwl3945_pci_remove(struct pci_dev *pdev) | |||
7298 | 7298 | ||
7299 | iwl3945_free_channel_map(priv); | 7299 | iwl3945_free_channel_map(priv); |
7300 | iwl3945_free_geos(priv); | 7300 | iwl3945_free_geos(priv); |
7301 | kfree(priv->scan39); | 7301 | kfree(priv->scan); |
7302 | if (priv->ibss_beacon) | 7302 | if (priv->ibss_beacon) |
7303 | dev_kfree_skb(priv->ibss_beacon); | 7303 | dev_kfree_skb(priv->ibss_beacon); |
7304 | 7304 | ||