Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 16ccad04 authored by Janani Ravichandran's avatar Janani Ravichandran Committed by Greg Kroah-Hartman
Browse files

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: default avatarJanani Ravichandran <janani.rvchndrn@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent acc17d67
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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));
}