projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e83b0a
)
staging: wlan-ng: prism2mgmt.c: Drop void pointer cast
author
Janani Ravichandran
<
[email protected]
>
Thu, 25 Feb 2016 19:22:27 +0000
(14:22 -0500)
committer
Greg Kroah-Hartman
<
[email protected]
>
Sat, 12 Mar 2016 06:09:09 +0000
(22:09 -0800)
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 <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/staging/wlan-ng/prism2mgmt.c
patch
|
blob
|
history
diff --git
a/drivers/staging/wlan-ng/prism2mgmt.c
b/drivers/staging/wlan-ng/prism2mgmt.c
index 013a6240f193a3d96ce4aacacdf9d0548e3b4c42..d8ed9a05789ca7ddfbe7ef27d22007093b3ffe3d 100644
(file)
--- 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;