projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52424e0
)
wifi: rsi: rsi_91x_mac80211: Remove unnecessary conversions
author
Wu Yunchuan
<yunchuan@nfschina.com>
Thu, 3 Aug 2023 07:35:17 +0000
(15:35 +0800)
committer
Kalle Valo
<kvalo@kernel.org>
Wed, 23 Aug 2023 11:07:14 +0000
(14:07 +0300)
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
drivers/net/wireless/rsi/rsi_91x_mac80211.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/rsi/rsi_91x_mac80211.c
b/drivers/net/wireless/rsi/rsi_91x_mac80211.c
index bc1f038d165502d6198c1999bb0a6d1372c428e1..05890536e353854151fb7afef29ceefde60bb700 100644
(file)
--- a/
drivers/net/wireless/rsi/rsi_91x_mac80211.c
+++ b/
drivers/net/wireless/rsi/rsi_91x_mac80211.c
@@
-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");