diff options
author | Janani Ravichandran <janani.rvchndrn@gmail.com> | 2016-02-25 14:22:27 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-03-11 22:09:09 -0800 |
commit | 3cfcb95c72cf165176ddf66693747a7a7918182c (patch) | |
tree | cacbdebb4b0b7e479ce56ad11f720bc67f361dff /drivers/staging/wlan-ng/prism2mgmt.c | |
parent | 3e83b0ab5086c2a745237f1e6854d588305e8cfd (diff) |
staging: wlan-ng: prism2mgmt.c: Drop void pointer cast
Void pointers don't need to 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/wlan-ng/prism2mgmt.c')
-rw-r--r-- | drivers/staging/wlan-ng/prism2mgmt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/wlan-ng/prism2mgmt.c b/drivers/staging/wlan-ng/prism2mgmt.c index 013a6240f193..d8ed9a05789c 100644 --- a/drivers/staging/wlan-ng/prism2mgmt.c +++ b/drivers/staging/wlan-ng/prism2mgmt.c @@ -375,7 +375,7 @@ int prism2mgmt_scan_results(wlandevice_t *wlandev, void *msgp) int count; - req = (struct p80211msg_dot11req_scan_results *) msgp; + req = msgp; req->resultcode.status = P80211ENUM_msgitem_status_data_ok; |