[PATCH *-next 07/18] wifi: mac80211: Remove needless return in void API _ieee80211_hw_set()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxx>
---
 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





[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]
  Powered by Linux