aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/hostap/hostap_80211_rx.c
diff options
context:
space:
mode:
authorJulia Lawall <julia@diku.dk>2010-05-11 14:25:56 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-05-12 16:39:07 -0400
commitaca8c6fa46aed6db36043cd2edbdc42fd20c3208 (patch)
tree6cbf46d010260a3a719a6839279987a56de264e0 /drivers/net/wireless/hostap/hostap_80211_rx.c
parent058897a4e93a6fc6d331e2ef591b2d6571431265 (diff)
drivers/net/wireless/hostap: Drop memory allocation cast
Drop cast on the result of kmalloc and similar functions. The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // <smpl> @@ type T; @@ - (T *) (\(kmalloc\|kzalloc\|kcalloc\|kmem_cache_alloc\|kmem_cache_zalloc\| kmem_cache_alloc_node\|kmalloc_node\|kzalloc_node\)(...)) // </smpl> Signed-off-by: Julia Lawall <julia@diku.dk> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/hostap/hostap_80211_rx.c')
-rw-r--r--drivers/net/wireless/hostap/hostap_80211_rx.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/hostap/hostap_80211_rx.c b/drivers/net/wireless/hostap/hostap_80211_rx.c
index 3816df96a663..fa592cb6bf9a 100644
--- a/drivers/net/wireless/hostap/hostap_80211_rx.c
+++ b/drivers/net/wireless/hostap/hostap_80211_rx.c
@@ -354,8 +354,7 @@ static struct hostap_bss_info *__hostap_add_bss(local_info_t *local, u8 *bssid,
354 list_del(&bss->list); 354 list_del(&bss->list);
355 local->num_bss_info--; 355 local->num_bss_info--;
356 } else { 356 } else {
357 bss = (struct hostap_bss_info *) 357 bss = kmalloc(sizeof(*bss), GFP_ATOMIC);
358 kmalloc(sizeof(*bss), GFP_ATOMIC);
359 if (bss == NULL) 358 if (bss == NULL)
360 return NULL; 359 return NULL;
361 } 360 }