[PATCH *-next 07/18] wifi: mac80211: Remove needless return in void API _ieee80211_hw_set()
Zijun Hu
quic_zijuhu at quicinc.com
Fri Feb 21 05:02:12 PST 2025
Remove needless 'return' in void API _ieee80211_hw_set()
since both the API and __set_bit() are void functions.
Signed-off-by: Zijun Hu <quic_zijuhu at quicinc.com>
---
include/net/mac80211.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/net/mac80211.h b/include/net/mac80211.h
index c3ed2fcff8b7..3a654e9f41db 100644
--- a/include/net/mac80211.h
+++ b/include/net/mac80211.h
@@ -3091,7 +3091,7 @@ static inline bool _ieee80211_hw_check(struct ieee80211_hw *hw,
static inline void _ieee80211_hw_set(struct ieee80211_hw *hw,
enum ieee80211_hw_flags flg)
{
- return __set_bit(flg, hw->flags);
+ __set_bit(flg, hw->flags);
}
#define ieee80211_hw_set(hw, flg) _ieee80211_hw_set(hw, IEEE80211_HW_##flg)
--
2.34.1
More information about the linux-mtd
mailing list