* [PATCH 0/2] Drop pointer cast and remove CamelCase
@ 2016-02-25 18:59 Janani Ravichandran
2016-02-25 19:01 ` [PATCH 1/2] staging: rtl8723au: core: Drop unneeded pointer cast Janani Ravichandran
2016-02-25 19:02 ` [PATCH 2/2] staging: rtl8723au: core: Remove CamelCase Janani Ravichandran
0 siblings, 2 replies; 3+ messages in thread
From: Janani Ravichandran @ 2016-02-25 18:59 UTC (permalink / raw)
To: outreachy-kernel
This patchset drops cast on a void pointer and removes CamelCase
on the name of the pointer variable
Janani Ravichandran (2):
staging: rtl8723au: core: Drop unneeded pointer cast
staging: rtl8723au: core: Remove camelcasing
drivers/staging/rtl8723au/core/rtw_security.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--
2.5.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/2] staging: rtl8723au: core: Drop unneeded pointer cast
2016-02-25 18:59 [PATCH 0/2] Drop pointer cast and remove CamelCase Janani Ravichandran
@ 2016-02-25 19:01 ` Janani Ravichandran
2016-02-25 19:02 ` [PATCH 2/2] staging: rtl8723au: core: Remove CamelCase Janani Ravichandran
1 sibling, 0 replies; 3+ messages in thread
From: Janani Ravichandran @ 2016-02-25 19:01 UTC (permalink / raw)
To: outreachy-kernel
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>
---
drivers/staging/rtl8723au/core/rtw_security.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/rtl8723au/core/rtw_security.c b/drivers/staging/rtl8723au/core/rtw_security.c
index 038b57b..9d2a013 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__);
--
2.5.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 2/2] staging: rtl8723au: core: Remove CamelCase
2016-02-25 18:59 [PATCH 0/2] Drop pointer cast and remove CamelCase Janani Ravichandran
2016-02-25 19:01 ` [PATCH 1/2] staging: rtl8723au: core: Drop unneeded pointer cast Janani Ravichandran
@ 2016-02-25 19:02 ` Janani Ravichandran
1 sibling, 0 replies; 3+ messages in thread
From: Janani Ravichandran @ 2016-02-25 19:02 UTC (permalink / raw)
To: outreachy-kernel
Remove CamelCase on the variable FunctionContext.
Signed-off-by: Janani Ravichandran <janani.rvchndrn@gmail.com>
---
drivers/staging/rtl8723au/core/rtw_security.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/rtl8723au/core/rtw_security.c b/drivers/staging/rtl8723au/core/rtw_security.c
index 9d2a013..411d138 100644
--- a/drivers/staging/rtl8723au/core/rtw_security.c
+++ b/drivers/staging/rtl8723au/core/rtw_security.c
@@ -1617,9 +1617,9 @@ exit:
return res;
}
-void rtw_use_tkipkey_handler23a(void *FunctionContext)
+void rtw_use_tkipkey_handler23a(void *function_context)
{
- struct rtw_adapter *padapter = FunctionContext;
+ struct rtw_adapter *padapter = function_context;
RT_TRACE(_module_rtl871x_security_c_, _drv_err_,
"^^^%s ^^^\n", __func__);
--
2.5.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-02-25 14:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-25 18:59 [PATCH 0/2] Drop pointer cast and remove CamelCase Janani Ravichandran
2016-02-25 19:01 ` [PATCH 1/2] staging: rtl8723au: core: Drop unneeded pointer cast Janani Ravichandran
2016-02-25 19:02 ` [PATCH 2/2] staging: rtl8723au: core: Remove CamelCase Janani Ravichandran
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.