提交 62e259ed 编写于 作者: J Janani Ravichandran 提交者: 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: NJanani Ravichandran <janani.rvchndrn@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册