mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 17:08:10 +00:00
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
This commit is contained in:
parent
52424e0c49
commit
6d5d2dbd00
1 changed files with 2 additions and 2 deletions
|
@ -1763,8 +1763,8 @@ static int rsi_mac80211_roc(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
|
|||
struct ieee80211_channel *chan, int duration,
|
||||
enum ieee80211_roc_type type)
|
||||
{
|
||||
struct rsi_hw *adapter = (struct rsi_hw *)hw->priv;
|
||||
struct rsi_common *common = (struct rsi_common *)adapter->priv;
|
||||
struct rsi_hw *adapter = hw->priv;
|
||||
struct rsi_common *common = adapter->priv;
|
||||
int status = 0;
|
||||
|
||||
rsi_dbg(INFO_ZONE, "***** Remain on channel *****\n");
|
||||
|
|
Loading…
Reference in a new issue