From: Amitoj Kaur Chawla Date: Wed, 14 Oct 2015 18:47:08 +0000 (+0530) Subject: staging: lustre: ptlrpc: sec_gc: Remove useless cast on void pointer X-Git-Tag: firefly_0821_release~176^2~802^2~596 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=7f93fca90e09ade58cc1d4221706c0af5ef29076;p=firefly-linux-kernel-4.4.55.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/lustre/lustre/ptlrpc/sec_gc.c b/drivers/staging/lustre/lustre/ptlrpc/sec_gc.c index 07cf2fef4462..6e58d5f955d6 100644 --- a/drivers/staging/lustre/lustre/ptlrpc/sec_gc.c +++ b/drivers/staging/lustre/lustre/ptlrpc/sec_gc.c @@ -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();