diff options
author | Julia Lawall <julia@diku.dk> | 2010-05-11 14:25:56 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-05-12 16:39:07 -0400 |
commit | aca8c6fa46aed6db36043cd2edbdc42fd20c3208 (patch) | |
tree | 6cbf46d010260a3a719a6839279987a56de264e0 /drivers/net/wireless/hostap/hostap_ioctl.c | |
parent | 058897a4e93a6fc6d331e2ef591b2d6571431265 (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_ioctl.c')
-rw-r--r-- | drivers/net/wireless/hostap/hostap_ioctl.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/hostap/hostap_ioctl.c b/drivers/net/wireless/hostap/hostap_ioctl.c index 9419cebca8a..f12a79786fb 100644 --- a/drivers/net/wireless/hostap/hostap_ioctl.c +++ b/drivers/net/wireless/hostap/hostap_ioctl.c | |||
@@ -3038,8 +3038,7 @@ static int prism2_ioctl_priv_download(local_info_t *local, struct iw_point *p) | |||
3038 | p->length > 1024 || !p->pointer) | 3038 | p->length > 1024 || !p->pointer) |
3039 | return -EINVAL; | 3039 | return -EINVAL; |
3040 | 3040 | ||
3041 | param = (struct prism2_download_param *) | 3041 | param = kmalloc(p->length, GFP_KERNEL); |
3042 | kmalloc(p->length, GFP_KERNEL); | ||
3043 | if (param == NULL) | 3042 | if (param == NULL) |
3044 | return -ENOMEM; | 3043 | return -ENOMEM; |
3045 | 3044 | ||