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)
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

index 07cf2fef44623943e6a1ff82d50249b6ad02a189..6e58d5f955d68690fc99753b85b0fbc0348eebaa 100644 (file)
@@ -146,7 +146,7 @@ static void sec_do_gc(struct ptlrpc_sec *sec)
 
 static int sec_gc_main(void *arg)
 {
-       struct ptlrpc_thread *thread = (struct ptlrpc_thread *) arg;
+       struct ptlrpc_thread *thread = arg;
        struct l_wait_info lwi;
 
        unshare_fs_struct();