From: Janani Ravichandran Date: Thu, 25 Feb 2016 19:22:27 +0000 (-0500) Subject: staging: wlan-ng: prism2mgmt.c: Drop void pointer cast X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3cfcb95c72cf165176ddf66693747a7a7918182c;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Greg Kroah-Hartman --- 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;