Staging: rtl8192u: Remove useless type conversion
authorBhumika Goyal <bhumirks@gmail.com>
Sun, 18 Sep 2016 12:26:24 +0000 (17:56 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Sep 2016 11:35:45 +0000 (13:35 +0200)
commitefdcb35a82fdd6e91b890efd3d5a5d4045e64c08
tree407b2cda9034cf0e42e5344c9a1b3bc90fbcd107
parent182eec0eb75fc17455ff4d77f5e37ae4f0c5ea1c
Staging: rtl8192u: Remove useless type conversion

Some type conversions like casting a pointer to a pointer of same type,
casting to the original type using addressof(&) operator etc. are not
needed. Therefore, remove them. Done using coccinelle:

@@
type t;
t *p;
t a;
@@
(
- (t)(a)
+ a
|
- (t *)(p)
+ p
|
- (t *)(&a)
+ &a
)

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c
drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c
drivers/staging/rtl8192u/r8192U_core.c
drivers/staging/rtl8192u/r8192U_dm.c