Commit 59b97b36 authored by Alison Schofield's avatar Alison Schofield Committed by Greg Kroah-Hartman

staging: wilc1000: host_interface: remove cast on void pointers

Remove cast on void pointers. C programming language guarantees
the conversion from void pointer to any other pointer type.

Coccinelle patch:
@r@
expression x;
void* e;
type T;
identifier f;
@@

(
  *((T *)e)
|
  ((T *)x)[...]
|
  ((T *)x)->f
|
- (T *)
  e
)
Signed-off-by: default avatarAlison Schofield <amsfield22@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ecdd5c74
...@@ -953,7 +953,7 @@ static s32 Handle_Connect(struct wilc_vif *vif, ...@@ -953,7 +953,7 @@ static s32 Handle_Connect(struct wilc_vif *vif,
return result; return result;
} }
ptstrJoinBssParam = (struct join_bss_param *)pstrHostIFconnectAttr->params; ptstrJoinBssParam = pstrHostIFconnectAttr->params;
if (!ptstrJoinBssParam) { if (!ptstrJoinBssParam) {
PRINT_ER("Required BSSID not found\n"); PRINT_ER("Required BSSID not found\n");
result = -ENOENT; result = -ENOENT;
...@@ -2675,7 +2675,7 @@ static int hostIFthread(void *pvArg) ...@@ -2675,7 +2675,7 @@ static int hostIFthread(void *pvArg)
{ {
u32 u32Ret; u32 u32Ret;
struct host_if_msg msg; struct host_if_msg msg;
struct wilc *wilc = (struct wilc*)pvArg; struct wilc *wilc = pvArg;
struct wilc_vif *vif; struct wilc_vif *vif;
memset(&msg, 0, sizeof(struct host_if_msg)); memset(&msg, 0, sizeof(struct host_if_msg));
......
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