From: Janani Ravichandran Date: Thu, 25 Feb 2016 19:09:22 +0000 (-0500) Subject: staging: netlogic: Drop unneeded void pointer cast X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=62e259ed5474a18b377e38dbf694ab1adbbdd8d3;p=linux-beck.git staging: netlogic: Drop unneeded 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/netlogic/xlr_net.c b/drivers/staging/netlogic/xlr_net.c index 3a6de47461dc..59deeee191db 100644 --- a/drivers/staging/netlogic/xlr_net.c +++ b/drivers/staging/netlogic/xlr_net.c @@ -130,7 +130,7 @@ static void xlr_net_fmn_handler(int bkt, int src_stnid, int size, int code, struct xlr_net_priv *priv; u32 port, length; unsigned char *addr; - struct xlr_adapter *adapter = (struct xlr_adapter *)arg; + struct xlr_adapter *adapter = arg; length = (msg->msg0 >> 40) & 0x3fff; if (length == 0) {