Staging: lustre: libcfs: Drop unnecessary cast on void*
authorShraddha Barke <shraddha.6596@gmail.com>
Tue, 4 Aug 2015 17:32:33 +0000 (23:02 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Aug 2015 19:18:00 +0000 (12:18 -0700)
commita12aaa92f3ccd15015e01373c2b60a3841aaebbb
tree4d909006f861463e8023fc36723e19c44ab62692
parent946b254697655f0ea0c54b1b0e20fb3b9aab99da
Staging: lustre: libcfs: Drop unnecessary cast on void*

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-module.c