From: Janani Ravichandran Date: Thu, 25 Feb 2016 20:08:17 +0000 (-0500) Subject: staging: rdma: hfi1: user_sdma.c: Drop void pointer cast X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=16ccad0475796c0acc084a51a49c9a86051586db;p=linux-beck.git staging: rdma: hfi1: user_sdma.c: Drop void pointer cast Void pointers need not be cast to other pointer types. Semantic patch used: @r@ expression x; void *e; type T; identifier f; @@ ( *((T *)e) | ((T *)x) [...] | ((T *)x)->f | - (T *) e ) Signed-off-by: Janani Ravichandran Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rdma/hfi1/user_sdma.c b/drivers/staging/rdma/hfi1/user_sdma.c index 2f484195479c..d152126a15be 100644 --- a/drivers/staging/rdma/hfi1/user_sdma.c +++ b/drivers/staging/rdma/hfi1/user_sdma.c @@ -345,7 +345,7 @@ static void activate_packet_queue(struct iowait *wait, int reason) static void sdma_kmem_cache_ctor(void *obj) { - struct user_sdma_txreq *tx = (struct user_sdma_txreq *)obj; + struct user_sdma_txreq *tx = obj; memset(tx, 0, sizeof(*tx)); }