OSDN Git Service

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