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

wifi: rsi: rsi_91x_mac80211: Remove unnecessary conversions

No need cast (struct rsi_hw *) to (struct rsi_hw *),
or cast (struct rsi_common *) to (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/20230803073517.3666559-1-yunchuan@nfschina.com

authored by

Wu Yunchuan and committed by
Kalle Valo
6d5d2dbd 52424e0c

+2 -2
+2 -2
drivers/net/wireless/rsi/rsi_91x_mac80211.c
··· 1763 1763 struct ieee80211_channel *chan, int duration, 1764 1764 enum ieee80211_roc_type type) 1765 1765 { 1766 - struct rsi_hw *adapter = (struct rsi_hw *)hw->priv; 1767 - struct rsi_common *common = (struct rsi_common *)adapter->priv; 1766 + struct rsi_hw *adapter = hw->priv; 1767 + struct rsi_common *common = adapter->priv; 1768 1768 int status = 0; 1769 1769 1770 1770 rsi_dbg(INFO_ZONE, "***** Remain on channel *****\n");