From 17002df772f487ba814b3936dbbeb00e39cfb03a Mon Sep 17 00:00:00 2001 From: Janani Ravichandran Date: Thu, 25 Feb 2016 14:01:40 -0500 Subject: staging: rtl8723au: core: Drop unneeded 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 --- drivers/staging/rtl8723au/core/rtw_security.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/staging/rtl8723au') diff --git a/drivers/staging/rtl8723au/core/rtw_security.c b/drivers/staging/rtl8723au/core/rtw_security.c index 038b57b3afe2..9d2a0135dc5e 100644 --- a/drivers/staging/rtl8723au/core/rtw_security.c +++ b/drivers/staging/rtl8723au/core/rtw_security.c @@ -1619,7 +1619,7 @@ exit: void rtw_use_tkipkey_handler23a(void *FunctionContext) { - struct rtw_adapter *padapter = (struct rtw_adapter *)FunctionContext; + struct rtw_adapter *padapter = FunctionContext; RT_TRACE(_module_rtl871x_security_c_, _drv_err_, "^^^%s ^^^\n", __func__); -- cgit v1.2.3