Commit 62e259ed authored by Janani Ravichandran's avatar Janani Ravichandran Committed by Greg Kroah-Hartman

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: default avatarJanani Ravichandran <janani.rvchndrn@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b6725b05
...@@ -130,7 +130,7 @@ static void xlr_net_fmn_handler(int bkt, int src_stnid, int size, int code, ...@@ -130,7 +130,7 @@ static void xlr_net_fmn_handler(int bkt, int src_stnid, int size, int code,
struct xlr_net_priv *priv; struct xlr_net_priv *priv;
u32 port, length; u32 port, length;
unsigned char *addr; unsigned char *addr;
struct xlr_adapter *adapter = (struct xlr_adapter *)arg; struct xlr_adapter *adapter = arg;
length = (msg->msg0 >> 40) & 0x3fff; length = (msg->msg0 >> 40) & 0x3fff;
if (length == 0) { if (length == 0) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment