]> git.baikalelectronics.ru Git - kernel.git/commit
staging: lustre: mgc: Remove useless cast on void pointer
authorAmitoj Kaur Chawla <amitoj1606@gmail.com>
Wed, 14 Oct 2015 18:48:33 +0000 (00:18 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Oct 2015 05:22:26 +0000 (22:22 -0700)
commit5b875f5aed62e399cf94fe6ab9d5746e1699f0dc
tree8ab9d2ffd460299ee9ee7a7ba4900917a8df87bd
parentd548485873164cb344aaa32488f6935245d26a1f
staging: lustre: mgc: 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/mgc/mgc_request.c