Staging: lustre: lnet: Remove useless cast on void pointer
authorShraddha Barke <shraddha.6596@gmail.com>
Fri, 4 Sep 2015 06:38:44 +0000 (12:08 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Sep 2015 01:24:48 +0000 (18:24 -0700)
commit91b4e64bfe5b2b2afe66ba5ec622c003d483f9e3
tree9ff4da8d5105cd4ffadbf99d7b5a9f30333e8b5c
parent222a7e9166b90f7cfd683a192cc757181b95a34f
Staging: lustre: lnet: Remove useless cast on void pointer

void pointers do not need to be cast to other pointer types.

The semantic patch used to find this:

@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/lnet/klnds/socklnd/socklnd_cb.c