mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 11:03:43 +02:00
wifi: ath6kl: remove unnecessary (void*) conversions
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
This commit is contained in:
parent
4bd0f7d0f3
commit
779163fa1a
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user