diff options
author | Janani Ravichandran <janani.rvchndrn@gmail.com> | 2016-02-25 14:09:22 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-03-11 22:09:09 -0800 |
commit | 62e259ed5474a18b377e38dbf694ab1adbbdd8d3 (patch) | |
tree | 227ab74d8112e10660030445ea5e5ae0d72a0f0a /drivers/staging/netlogic | |
parent | b6725b058d02a2c84743635514684342cfaadd6b (diff) | |
download | blackbird-op-linux-62e259ed5474a18b377e38dbf694ab1adbbdd8d3.tar.gz blackbird-op-linux-62e259ed5474a18b377e38dbf694ab1adbbdd8d3.zip |
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 <janani.rvchndrn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/netlogic')
-rw-r--r-- | drivers/staging/netlogic/xlr_net.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |