Staging: lustre: Drop unnecessary cast
authorShraddha Barke <shraddha.6596@gmail.com>
Mon, 27 Jul 2015 16:50:35 +0000 (22:20 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 31 Jul 2015 22:57:36 +0000 (15:57 -0700)
commit0d749519f0441144f7da53e157d11f0680c15313
treefd496b7445af64dccf1337359a472d1898172dfe
parent01eb73d53070ca2c7a75c272291a79613604cd97
Staging: lustre: Drop unnecessary cast

This patch does away with the cast on void * as it is unnecessary.

Semantic patch used is as follows:

@r@
expression x;
void* e;
type T;
identifier f;
@@
(
  *((T *)e)
|
  ((T *)x)[...]
|
  ((T *)x)->f
|
- (T *)
  e
)

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/libcfs/linux/linux-crypto.c