OSDN Git Service

staging: lustre: ptlrpc: sec_gc: Remove useless cast on void pointer
authorAmitoj Kaur Chawla <amitoj1606@gmail.com>
Wed, 14 Oct 2015 18:47:08 +0000 (00:17 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Oct 2015 05:22:26 +0000 (22:22 -0700)
commit7f93fca90e09ade58cc1d4221706c0af5ef29076
treeb1f7aabb32dd160f6b1b46286239788dc9072bca
parentc54ed23f65407f2d91c358e98b9a639ec0c6ca1d
staging: lustre: ptlrpc: sec_gc: Remove useless cast on void pointer

The semantic patch used to find this is:

@r@
expression x;
void* e;
type T;
identifier f;
@@

(
  *((T *)e)
|
  ((T *)x)[...]
|
  ((T *)x)->f
|
- (T *)
  e
)

Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/ptlrpc/sec_gc.c