diff options
author | Sandhya Bankar <bankarsandhya512@gmail.com> | 2016-09-18 04:55:26 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-09-18 12:38:27 +0200 |
commit | cbb351ccdfa1e2b3261a024fae7980597f56549f (patch) | |
tree | 6a7faa00ca35178621d30a7ba27c88818649078f /drivers/staging/ks7010 | |
parent | 604e383c5229a214e17695e3ec13d9aa4952e10c (diff) | |
download | linux-stable-cbb351ccdfa1e2b3261a024fae7980597f56549f.tar.gz linux-stable-cbb351ccdfa1e2b3261a024fae7980597f56549f.tar.bz2 linux-stable-cbb351ccdfa1e2b3261a024fae7980597f56549f.zip |
Staging: ks7010: Drop memory allocation cast.
Drop cast on the result of kzalloc.
The semantic patch that makes this change is as follows:
@@
type T;
@@
- (T *)
(\(kmalloc\|kzalloc\|kcalloc\|kmem_cache_alloc\|kmem_cache_zalloc\|
kmem_cache_alloc_node\|kmalloc_node\|kzalloc_node\)(...))
Signed-off-by: Sandhya Bankar <bankarsandhya512@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/ks7010')
-rw-r--r-- | drivers/staging/ks7010/ks7010_sdio.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/ks7010/ks7010_sdio.c b/drivers/staging/ks7010/ks7010_sdio.c index f7ed8dba58ac..25ad43d34bd6 100644 --- a/drivers/staging/ks7010/ks7010_sdio.c +++ b/drivers/staging/ks7010/ks7010_sdio.c @@ -1140,8 +1140,7 @@ static void ks7010_sdio_remove(struct sdio_func *func) /* send stop request to MAC */ { struct hostif_stop_request_t *pp; - pp = (struct hostif_stop_request_t *) - kzalloc(hif_align_size(sizeof(*pp)), GFP_KERNEL); + pp = kzalloc(hif_align_size(sizeof(*pp)), GFP_KERNEL); if (!pp) { DPRINTK(3, "allocate memory failed..\n"); return; /* to do goto ni suru */ |