Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

wifi: rsi: rsi_91x_coex: Remove unnecessary (void*) conversions

No need cast (void*) to (struct rsi_coex_ctrl_block *) or
(struct rsi_common *).

Signed-off-by: Wu Yunchuan <yunchuan@nfschina.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20230803073440.3666204-1-yunchuan@nfschina.com

authored by

Wu Yunchuan and committed by
Kalle Valo
5f48e916 9e261e6d

+4 -7
+4 -7
drivers/net/wireless/rsi/rsi_91x_coex.c
··· 52 52 53 53 static void rsi_coex_scheduler_thread(struct rsi_common *common) 54 54 { 55 - struct rsi_coex_ctrl_block *coex_cb = 56 - (struct rsi_coex_ctrl_block *)common->coex_cb; 55 + struct rsi_coex_ctrl_block *coex_cb = common->coex_cb; 57 56 u32 timeout = EVENT_WAIT_FOREVER; 58 57 59 58 do { ··· 99 100 100 101 int rsi_coex_send_pkt(void *priv, struct sk_buff *skb, u8 hal_queue) 101 102 { 102 - struct rsi_common *common = (struct rsi_common *)priv; 103 - struct rsi_coex_ctrl_block *coex_cb = 104 - (struct rsi_coex_ctrl_block *)common->coex_cb; 103 + struct rsi_common *common = priv; 104 + struct rsi_coex_ctrl_block *coex_cb = common->coex_cb; 105 105 struct skb_info *tx_params = NULL; 106 106 enum rsi_coex_queues coex_q; 107 107 int status; ··· 166 168 167 169 void rsi_coex_detach(struct rsi_common *common) 168 170 { 169 - struct rsi_coex_ctrl_block *coex_cb = 170 - (struct rsi_coex_ctrl_block *)common->coex_cb; 171 + struct rsi_coex_ctrl_block *coex_cb = common->coex_cb; 171 172 int cnt; 172 173 173 174 rsi_kill_thread(&coex_cb->coex_tx_thread);