summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmitoj Kaur Chawla <amitoj1606@gmail.com>2015-10-14 18:45:23 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-10-17 05:22:26 (GMT)
commitc54ed23f65407f2d91c358e98b9a639ec0c6ca1d (patch)
treee5e9af6fb090054b6ac88fbf2f6ee8f8ba421380
parent864ef621fa45b5dd6a113d771640fc4984cc8dc6 (diff)
downloadlinux-c54ed23f65407f2d91c358e98b9a639ec0c6ca1d.tar.xz
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 <amitoj1606@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/lustre/lustre/ptlrpc/pinger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/lustre/lustre/ptlrpc/pinger.c b/drivers/staging/lustre/lustre/ptlrpc/pinger.c
index 53bfae1..5c719f1 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);