Staging: Drop memory allocation cast
authorJulia Lawall <julia@diku.dk>
Tue, 11 May 2010 18:26:57 +0000 (20:26 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 11 May 2010 23:06:48 +0000 (16:06 -0700)
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: Greg Kroah-Hartman <gregkh@suse.de>

No differences found