From: Amitoj Kaur Chawla Date: Wed, 14 Oct 2015 18:45:23 +0000 (+0530) Subject: staging: lustre: ptlrpc: pinger: Remove useless cast on void pointer X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=c54ed23f65407f2d91c358e98b9a639ec0c6ca1d;p=openwrt%2Fstaging%2Fblogic.git staging: lustre: ptlrpc: pinger: 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/pinger.c b/drivers/staging/lustre/lustre/ptlrpc/pinger.c index 53bfae143dfc..5c719f175657 100644 --- a/drivers/staging/lustre/lustre/ptlrpc/pinger.c +++ b/drivers/staging/lustre/lustre/ptlrpc/pinger.c @@ -221,7 +221,7 @@ static void ptlrpc_pinger_process_import(struct obd_import *imp, static int ptlrpc_pinger_main(void *arg) { - struct ptlrpc_thread *thread = (struct ptlrpc_thread *)arg; + struct ptlrpc_thread *thread = arg; /* Record that the thread is running */ thread_set_flags(thread, SVC_RUNNING);