wifi: ath6kl: remove unnecessary (void*) conversions
authorWu Yunchuan <yunchuan@nfschina.com>
Tue, 19 Sep 2023 04:50:08 +0000 (12:50 +0800)
committerKalle Valo <quic_kvalo@quicinc.com>
Thu, 21 Sep 2023 08:08:22 +0000 (11:08 +0300)
No need cast (void *) to (struct ath6kl *) or
(struct ath6kl_cookie *).

Signed-off-by: Wu Yunchuan <yunchuan@nfschina.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20230919045008.523730-1-yunchuan@nfschina.com
drivers/net/wireless/ath/ath6kl/main.c
drivers/net/wireless/ath/ath6kl/txrx.c

index d3aa9e7a37c2d88939a024756b14c13ec7a009ad..8f9fe23e9755108dc2966ee37664f0f7c8162b23 100644 (file)
@@ -852,14 +852,14 @@ void ath6kl_tgt_stats_event(struct ath6kl_vif *vif, u8 *ptr, u32 len)
 
 void ath6kl_wakeup_event(void *dev)
 {
-       struct ath6kl *ar = (struct ath6kl *) dev;
+       struct ath6kl *ar = dev;
 
        wake_up(&ar->event_wq);
 }
 
 void ath6kl_txpwr_rx_evt(void *devt, u8 tx_pwr)
 {
-       struct ath6kl *ar = (struct ath6kl *) devt;
+       struct ath6kl *ar = devt;
 
        ar->tx_pwr = tx_pwr;
        wake_up(&ar->event_wq);
index a56fab6232a9bad411d23db785c8d908abb6f4b3..80e66acc5cf6e9b758fbe5ce6d758f25c38e0ad9 100644 (file)
@@ -708,7 +708,7 @@ void ath6kl_tx_complete(struct htc_target *target,
                                 packet->endpoint >= ENDPOINT_MAX))
                        continue;
 
-               ath6kl_cookie = (struct ath6kl_cookie *)packet->pkt_cntxt;
+               ath6kl_cookie = packet->pkt_cntxt;
                if (WARN_ON_ONCE(!ath6kl_cookie))
                        continue;