Staging: lustre: lov: Drop unnecessary cast on void *
authorShraddha Barke <shraddha.6596@gmail.com>
Tue, 4 Aug 2015 17:32:35 +0000 (23:02 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Aug 2015 19:18:00 +0000 (12:18 -0700)
commit45b30514a34fa7fcb7a84be799ca5fc53d33a4d7
treeca3568bcb9d7f3aa38868eec2fff8e0fe427534c
parenta12aaa92f3ccd15015e01373c2b60a3841aaebbb
Staging: lustre: lov: 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/lov/lov_obd.c