git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3d43a3
)
staging: rtl8188eu: core: Remove useless cast on void pointer
author
Tapasweni Pathak
<tapaswenipathak@gmail.com>
Thu, 30 Oct 2014 11:33:08 +0000
(17:03 +0530)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Thu, 30 Oct 2014 20:05:48 +0000
(13:05 -0700)
void pointers do not need to be cast to other pointer types.
The semantic patch used to find this:
@r@
expression x;
void* e;
type T;
identifier f;
@@
(
*((T *)e)
|
((T *)x)[...]
|
((T *)x)->f
|
- (T *)
e
)
Build tested it.
Signed-off-by: Tapasweni Pathak <tapaswenipathak@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
No differences found