mirror of
https://github.com/torvalds/linux.git
synced 2024-12-15 07:33:56 +00:00
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>
This commit is contained in:
parent
3e83b0ab50
commit
3cfcb95c72
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user