fs/ocfs2/dlm: Drop memory allocation cast
authorJulia Lawall <julia@diku.dk>
Tue, 11 May 2010 18:28:14 +0000 (20:28 +0200)
committerJoel Becker <joel.becker@oracle.com>
Tue, 18 May 2010 19:31:10 +0000 (12:31 -0700)
commit3914ed0cec6532ab4feb202424fc95ad05024497
tree034377b0e2cf83e3a6fca5883ea8e4e5191a469a
parentc1631d4a484fbb498e35d661f1aebd64c86b66bf
fs/ocfs2/dlm: 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: Joel Becker <joel.becker@oracle.com>
fs/ocfs2/dlm/dlmlock.c
fs/ocfs2/dlm/dlmmaster.c