mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/7] net: Use min()/max()/max_t() to improve code
@ 2025-07-15 12:16 Qianfeng Rong
  2025-07-15 12:16 ` [PATCH v2 1/7] net: usb: Use min() " Qianfeng Rong
                   ` (6 more replies)
  0 siblings, 7 replies; 12+ messages in thread
From: Qianfeng Rong @ 2025-07-15 12:16 UTC (permalink / raw)
  To: Andrew Lunn, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Jiri Slaby, Nick Kossifidis, Luis Chamberlain,
	Toke Høiland-Jørgensen, Arend van Spriel, Brian Norris,
	Francesco Dolcini, Ajay Singh, Claudiu Beznea, Ping-Ke Shih,
	Gustavo A. R. Silva, Kees Cook, Lucas Sanchez Sagrado,
	Philipp Hahn, Qianfeng Rong, Aleksander Jan Bajkowski,
	Hayes Wang, Eric Biggers, Wentao Liang, Johannes Berg,
	Sebastian Reichel, Ondrej Jirman, Jacobe Zang, Kalle Valo,
	Dmitry Antipov, Sascha Hauer, Aditya Kumar Singh, David Lin,
	Dan Carpenter, Roopni Devanathan, Alexis Lothoré,
	Marek Vasut, Arnd Bergmann, open list:USB NETWORKING DRIVERS,
	open list:NETWORKING DRIVERS, open list,
	open list:ATHEROS ATH5K WIRELESS DRIVER,
	open list:BROADCOM BRCM80211 IEEE802.11 WIRELESS DRIVERS,
	open list:BROADCOM BRCM80211 IEEE802.11 WIRELESS DRIVERS

Use min()/max()/max_t() to reduce the code and improve its readability.

No functional changes.

Qianfeng Rong (7):
  net: usb: Use min() to improve code
  wifi: ath5k: Use max() to improve code
  wifi: ath9k: Use max() to improve code
  wifi: brcm80211: Use min() to improve code
  wifi: mwifiex: Use max_t() to improve code
  wifi: wilc1000: Use min() to improve code
  wifi: rtlwifi: Use min()/max() to improve code

 drivers/net/usb/r8152.c                       |  5 +----
 drivers/net/wireless/ath/ath5k/phy.c          | 12 +++---------
 drivers/net/wireless/ath/ath9k/dfs.c          |  5 +----
 .../broadcom/brcm80211/brcmfmac/usb.c         |  5 +----
 .../broadcom/brcm80211/brcmsmac/phy/phy_n.c   |  6 ++----
 .../net/wireless/marvell/mwifiex/cfg80211.c   |  7 +++----
 .../net/wireless/microchip/wilc1000/wlan.c    |  5 +----
 .../wireless/realtek/rtlwifi/rtl8192ce/hw.c   | 19 +++----------------
 .../wireless/realtek/rtlwifi/rtl8192cu/hw.c   | 17 +++--------------
 .../wireless/realtek/rtlwifi/rtl8192ee/dm.c   |  5 +----
 .../wireless/realtek/rtlwifi/rtl8723ae/hw.c   | 15 +++------------
 .../wireless/realtek/rtlwifi/rtl8723be/dm.c   |  5 +----
 .../wireless/realtek/rtlwifi/rtl8821ae/dm.c   |  5 +----
 13 files changed, 24 insertions(+), 87 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2025-07-18 10:37 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-07-15 12:16 [PATCH v2 0/7] net: Use min()/max()/max_t() to improve code Qianfeng Rong
2025-07-15 12:16 ` [PATCH v2 1/7] net: usb: Use min() " Qianfeng Rong
2025-07-15 12:16 ` [PATCH v2 2/7] wifi: ath5k: Use max() " Qianfeng Rong
2025-07-15 16:24   ` Jeff Johnson
2025-07-15 12:16 ` [PATCH v2 3/7] wifi: ath9k: " Qianfeng Rong
2025-07-15 12:16 ` [PATCH v2 4/7] wifi: brcm80211: Use min() " Qianfeng Rong
2025-07-18 10:37   ` Arend van Spriel
2025-07-15 12:16 ` [PATCH v2 5/7] wifi: mwifiex: Use max_t() " Qianfeng Rong
2025-07-17  2:22   ` Jeff Chen
2025-07-15 12:16 ` [PATCH v2 6/7] wifi: wilc1000: Use min() " Qianfeng Rong
2025-07-15 12:16 ` [PATCH v2 7/7] wifi: rtlwifi: Use min()/max() " Qianfeng Rong
2025-07-18  6:42   ` Ping-Ke Shih

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®