staging: wlan-ng: Drop void pointer cast
PATCH 1/1 staging: wlan-ng: Drop void pointer cast
Void pointers need not 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 <[email protected]>
--- drivers/staging/wlan-ng/prism2mib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/wlan-ng/prism2mib.c +1 -1
@@ -379,7 +379,7 @@ static int prism2mib_bytearea2pstr(struct mibrec *mib, void *data) {int result; -p80211pstrd_t *pstr = (p80211pstrd_t *) data; +p80211pstrd_t *pstr = data;u8 bytebuf[MIB_TMP_MAXLEN ];if (isget) {
Signature · 1 line
2.5.0