ath9k: remove cast to void pointer
authorHimanshu Jha <himanshujha199640@gmail.com>
Fri, 1 Sep 2017 06:43:34 +0000 (12:13 +0530)
committerKalle Valo <kvalo@qca.qualcomm.com>
Mon, 25 Sep 2017 07:13:58 +0000 (10:13 +0300)
commit50c8cd44ed5fcd2cbbfe19e5b1eb680aa4440186
tree2b08e546f5f9bda5236df77b42cdfeb3ab71d8a2
parent2bd6bf03f4c1c59381d62c61d03f6cc3fe71f66e
ath9k: remove cast to void pointer

casting to void pointer from any pointer type and vice-versa is done
implicitly and therefore casting is not needed in such a case.

Done using Coccinellle.
Semantic Patch used :

@r@
expression x;
void* e;
type T;
identifier f;
@@

(
  *((T *)e)
|
  ((T *)x)[...]
|
  ((T *)x)->f
|
- (T *)
  e
)

Signed-off-by: Himanshu Jha <himanshujha199640@gmail.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath9k/ar9003_mac.c
drivers/net/wireless/ath/ath9k/dfs.c
drivers/net/wireless/ath/ath9k/hif_usb.c
drivers/net/wireless/ath/ath9k/htc_drv_beacon.c
drivers/net/wireless/ath/ath9k/htc_drv_init.c
drivers/net/wireless/ath/ath9k/htc_drv_main.c
drivers/net/wireless/ath/ath9k/htc_drv_txrx.c
drivers/net/wireless/ath/ath9k/init.c
drivers/net/wireless/ath/ath9k/main.c
drivers/net/wireless/ath/ath9k/mci.c
drivers/net/wireless/ath/ath9k/wmi.c