Commit 779163fa authored by Wu Yunchuan's avatar Wu Yunchuan Committed by Kalle Valo

wifi: ath6kl: remove unnecessary (void*) conversions

No need cast (void *) to (struct ath6kl *) or
(struct ath6kl_cookie *).
Signed-off-by: default avatarWu Yunchuan <yunchuan@nfschina.com>
Signed-off-by: default avatarKalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20230919045008.523730-1-yunchuan@nfschina.com
parent 4bd0f7d0
...@@ -852,14 +852,14 @@ void ath6kl_tgt_stats_event(struct ath6kl_vif *vif, u8 *ptr, u32 len) ...@@ -852,14 +852,14 @@ void ath6kl_tgt_stats_event(struct ath6kl_vif *vif, u8 *ptr, u32 len)
void ath6kl_wakeup_event(void *dev) void ath6kl_wakeup_event(void *dev)
{ {
struct ath6kl *ar = (struct ath6kl *) dev; struct ath6kl *ar = dev;
wake_up(&ar->event_wq); wake_up(&ar->event_wq);
} }
void ath6kl_txpwr_rx_evt(void *devt, u8 tx_pwr) 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; ar->tx_pwr = tx_pwr;
wake_up(&ar->event_wq); wake_up(&ar->event_wq);
......
...@@ -708,7 +708,7 @@ void ath6kl_tx_complete(struct htc_target *target, ...@@ -708,7 +708,7 @@ void ath6kl_tx_complete(struct htc_target *target,
packet->endpoint >= ENDPOINT_MAX)) packet->endpoint >= ENDPOINT_MAX))
continue; continue;
ath6kl_cookie = (struct ath6kl_cookie *)packet->pkt_cntxt; ath6kl_cookie = packet->pkt_cntxt;
if (WARN_ON_ONCE(!ath6kl_cookie)) if (WARN_ON_ONCE(!ath6kl_cookie))
continue; continue;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment