]> git.baikalelectronics.ru Git - kernel.git/commit
rtlwifi: Remove addressof casts to same type
authorJoe Perches <joe@perches.com>
Mon, 24 Mar 2014 17:46:20 +0000 (10:46 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 27 Mar 2014 18:20:05 +0000 (14:20 -0400)
commita77a05aeebd2fa3c33d325e0c24d6b48026e9942
tree7733dfba8ae7e0f8ddd0ce024f119a9b8d6f9502
parentdf917f6b553f6ba5267b5780a0f512b5c1c5bc08
rtlwifi: Remove addressof casts to same type

Using addressof then casting to the original type is pointless,
so remove these unnecessary casts.

Done via coccinelle script:

$ cat typecast.cocci
@@
type T;
T foo;
@@

- (T *)&foo
+ &foo

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rtlwifi/pci.c
drivers/net/wireless/rtlwifi/rtl8188ee/hw.c
drivers/net/wireless/rtlwifi/rtl8723ae/hw.c
drivers/net/wireless/rtlwifi/rtl8723be/hw.c