Staging: lustre: libcfs: Remove unnecessary cast on void*
authorShraddha Barke <shraddha.6596@gmail.com>
Mon, 10 Aug 2015 08:00:34 +0000 (13:30 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 15 Aug 2015 01:44:45 +0000 (18:44 -0700)
commit94858feccaada3f1810ff50dd21d33b1d4d95d56
tree431f74c91efcd3fa78a6d3402790c9d3cb38aaf7
parent642ac6c0dceb6292065d08925e6ffd6ef1fbc7e1
Staging: lustre: libcfs: Remove 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
|
- (void *)
  e
)

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