summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/htc_drv_main.c
diff options
context:
space:
mode:
authorHimanshu Jha2017-09-01 08:43:34 +0200
committerKalle Valo2017-09-25 09:13:58 +0200
commit50c8cd44ed5fcd2cbbfe19e5b1eb680aa4440186 (patch)
tree2b08e546f5f9bda5236df77b42cdfeb3ab71d8a2 /drivers/net/wireless/ath/ath9k/htc_drv_main.c
parentLinux 4.14-rc1 (diff)
downloadkernel-qcow2-linux-50c8cd44ed5fcd2cbbfe19e5b1eb680aa4440186.tar.gz
kernel-qcow2-linux-50c8cd44ed5fcd2cbbfe19e5b1eb680aa4440186.tar.xz
kernel-qcow2-linux-50c8cd44ed5fcd2cbbfe19e5b1eb680aa4440186.zip
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>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/htc_drv_main.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/htc_drv_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_main.c b/drivers/net/wireless/ath/ath9k/htc_drv_main.c
index a553c91d41a1..f808e5833d7e 100644
--- a/drivers/net/wireless/ath/ath9k/htc_drv_main.c
+++ b/drivers/net/wireless/ath/ath9k/htc_drv_main.c
@@ -1483,7 +1483,7 @@ static void ath9k_htc_set_bssid(struct ath9k_htc_priv *priv)
static void ath9k_htc_bss_iter(void *data, u8 *mac, struct ieee80211_vif *vif)
{
- struct ath9k_htc_priv *priv = (struct ath9k_htc_priv *)data;
+ struct ath9k_htc_priv *priv = data;
struct ath_common *common = ath9k_hw_common(priv->ah);
struct ieee80211_bss_conf *bss_conf = &vif->bss_conf;